~bzr-pqm/bzr/bzr.dev

« back to all changes in this revision

Viewing changes to bzrlib/transport/http/_urllib2_wrappers.py

  • Committer: John Arbash Meinel
  • Date: 2007-06-28 23:18:09 UTC
  • mfrom: (2562 +trunk)
  • mto: This revision was merged to the branch mainline in revision 2566.
  • Revision ID: john@arbash-meinel.com-20070628231809-pqbt7puoqj8bl07b
[merge] bzr.dev 2562

Show diffs side-by-side

added added

removed removed

Lines of Context:
916
916
class BasicAuthHandler(AbstractAuthHandler):
917
917
    """A custom basic authentication handler."""
918
918
 
 
919
    handler_order = 500
 
920
 
919
921
    auth_regexp = re.compile('realm="([^"]*)"', re.I)
920
922
 
921
923
    def build_auth_header(self, auth, request):
972
974
class DigestAuthHandler(AbstractAuthHandler):
973
975
    """A custom digest authentication handler."""
974
976
 
 
977
    # Before basic as digest is a bit more secure
 
978
    handler_order = 490
 
979
 
975
980
    def auth_params_reusable(self, auth):
976
981
        # If the auth scheme is known, it means a previous
977
982
        # authentication was successful, all information is