Did I find the right examples for you? yes no      Crawl my project      Python Jobs

All Samples(6)  |  Call(4)  |  Derive(0)  |  Import(2)

src/e/r/erp5-HEAD/product/ERP5Wizard/PAS/ERP5RemoteUserManager.py   erp5(Download)
from Products.ERP5Type.Cache import CachingMethod
from DateTime import DateTime
from Products.ERP5Security.ERP5UserManager import ERP5UserManager, SUPER_USER, _AuthenticationFailure
 
from BTrees.OOBTree import OOBTree
 
            if not user_list:
              raise _AuthenticationFailure()
 
            user = user_list[0]
              setSecurityManager(sm)
 
            raise _AuthenticationFailure()
 
        _authenticateCredentials = CachingMethod(_authenticateCredentials,

src/e/r/erp5-HEAD/product/ERP5Security/ERP5KeyAuthPlugin.py   erp5(Download)
from Products.ERP5Type.Cache import CachingMethod
from Products.ERP5Type.UnrestrictedMethod import UnrestrictedMethod
from Products.ERP5Security.ERP5UserManager import ERP5UserManager,\
                                                  SUPER_USER,\
                                                  _AuthenticationFailure
        user_list = self.getUserByLogin(login)
        if len(user_list) != 1:
          raise _AuthenticationFailure()
        user = user_list[0]
 
            pass
 
          raise _AuthenticationFailure()
 
      #Cache Method for best performance