~bzr-pqm/bzr/bzr.dev

« back to all changes in this revision

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

  • Committer: Marius Kruger
  • Date: 2007-06-27 18:48:10 UTC
  • mfrom: (2557 +trunk)
  • mto: (2605.1.1 rm-renamed)
  • mto: This revision was merged to the branch mainline in revision 2609.
  • Revision ID: marius.kruger@enerweb.co.za-20070627184810-4jq1y5f20xafow9w
Merge with bzr.dev

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