~mvo/aptdaemon/mvo

« back to all changes in this revision

Viewing changes to aptdaemon/errors.py

  • Committer: Michael Vogt
  • Date: 2009-10-09 08:04:23 UTC
  • Revision ID: michael.vogt@ubuntu.com-20091009080423-h22mizy7f313xjm8
* aptdaemon/client.py:
  - add set_http_proxy() method to the transaction
* aptdaemon/core.py:
  - add new dbus Property "HttpProxy"
* aptdaemon/gtkwidgets.py:
  - setup http proxy from gconf automatically
* data/org.debian.apt.policy.in:
  - change from "allow_active" "yes" to "auth_admin_keep"
    The reasons is that now that a unpriviledged user can
    set a proxy this may leak passwords from sources.list
    (deb http://user:pass@machine/) when a rouge proxy is set

Show diffs side-by-side

added added

removed removed

Lines of Context:
45
45
        self.enum = enum
46
46
        self.message = msg
47
47
 
 
48
class InvalidProxyError(APTDError):
 
49
    """Invalid proxy given"""
 
50
    _dbus_error_name = "org.debian.apt.InvalidProxy"
 
51
    def __init__(self, proxy):
 
52
        APTDError.__init__(self, "InvalidProxyError: %s" % proxy)
 
53
 
48
54
class TransactionCancelled(APTDError):
49
55
    """Internal error if a transaction was cancelled."""
50
56
    _dbus_error_name = "org.debian.apt.TransactionCancelled"