~bzr-pqm/bzr/bzr.dev

  • Committer: Vincent Ladeuil
  • Date: 2007-04-17 22:07:18 UTC
  • mto: (2420.1.21 bzr.http.auth)
  • Revision ID: v.ladeuil+lp@free.fr-20070417220718-kce3mj0wn8hi8m02
Implement http proxy basic authentication.

* bzrlib/transport/http/_urllib2_wrappers.py:
(Request.set_proxy_auth): New method.
(extract_credentials): Moved from
HttpTransport_urllib._extract_auth.
(ProxyHandler.__init__): We need a password_manager for
authentication.
(ProxyHandler.set_proxy): Don't add the auth header, the
ProxyHandlers will do it later.
(ProxyBasicAuthHandler): New class. Handle the http basic
authentication for proxy.
(Opener.__init__): Enable ProxyBasicAuthHandler.

* bzrlib/transport/http/_urllib.py:
(HttpTransport_urllib._extract_auth): Moved to
_urllib2_wrappers.extract_credentials.

* bzrlib/tests/test_http.py:
(TestHttpProxyWhiteBox.test_empty_pass,
TestHttpProxyWhiteBox.test_user_pass): Deleted. Euivalent tests
exists in TestHTTPProxyBasicAuth now.

* bzrlib/tests/HTTPTestUtil.py:
(BasicAuthRequestHandler): Fix inheritance.
(ProxyBasicAuthRequestHandler): Force the use of
FakeProxyRequestHandler.translate_path. This is a bit ugly :-/
Filename Latest Rev Last Changed Committer Comment Size
..
bzrlib 1185.1.29 19 years ago Robert Collins merge merge tweaks from aaron, which includes late Diff
contrib 1185.1.29 19 years ago Robert Collins merge merge tweaks from aaron, which includes late Diff
doc 1185.1.29 19 years ago Robert Collins merge merge tweaks from aaron, which includes late Diff
tools 1185.1.29 19 years ago Robert Collins merge merge tweaks from aaron, which includes late Diff
.bzrignore 2054.2.15 17 years ago Aaron Bentley Ignore html docs (both kinds) 540 bytes Diff Download File
.rsyncexclude 1185.33.36 18 years ago Martin Pool Exclude more files from dumb-rsync upload 203 bytes Diff Download File
BRANCH.TODO 2363.4.10 17 years ago Vincent Ladeuil Complete tests. * bzrlib/transport/http/_urllib.p 150 bytes Diff Download File
build-api 1185.33.32 18 years ago Martin Pool [merge] fix \t in commit messages 100 bytes Diff Download File
File bzr 2389.1.1 17 years ago Martin Pool Merge 0.15 final release back to trunk, including: 3.8 KB Diff Download File
bzr.ico 1861.2.16 18 years ago Alexander Belchenko new official bzr.ico 7.2 KB Diff Download File
COPYING.txt 1861.2.9 18 years ago Alexander Belchenko rename gpl.txt => COPYING.txt 17.5 KB Diff Download File
File generate_docs.py 1861.2.7 18 years ago Alexander Belchenko merge bzr.dev 2.9 KB Diff Download File
HACKING 2405.2.2 17 years ago Andrew Bennetts Add a brief section on portability to HACKING. 25.4 KB Diff Download File
INSTALL 2382.2.6 17 years ago Martin Pool Recommendation to delete bzrlib when installing 675 bytes Diff Download File
Makefile 2418.1.1 17 years ago Robert Collins (robertc) Use 'python setup.py' instead of './setu 3.3 KB Diff Download File
NEWS 2363.4.11 17 years ago Vincent Ladeuil merge bzr.dev 110 KB Diff Download File
profile_imports.py 1996.3.36 18 years ago John Arbash Meinel [merge] bzr.dev 2070 5.4 KB Diff Download File
README 2367.1.1 17 years ago Robert Collins Update NEWS to match bzr 0.15. 2.4 KB Diff Download File
setup.py 2245.4.4 17 years ago Alexander Belchenko setup.py: fix plain 'python setup.py install' for 7 KB Diff Download File
TODO 2382.2.5 17 years ago Martin Pool Contents of TODO file moved into bug tracker 115 bytes Diff Download File