示例#1
0
 def u2handlers(self):
     # try to import ntlm support  
     try:
         from ntlm import HTTPNtlmAuthHandler
     except ImportError:
         raise Exception("Cannot import python-ntlm module")
     handlers = HttpTransport.u2handlers(self)
     handlers.append(HTTPNtlmAuthHandler.HTTPNtlmAuthHandler(self.pm))
     return handlers
示例#2
0
 def u2handlers(self):
         handlers = HttpTransport.u2handlers(self)
         handlers.append(u2.HTTPBasicAuthHandler(self.pm))
         return handlers