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

All Samples(36)  |  Call(18)  |  Derive(0)  |  Import(18)

        def set_access_manager(manager, registry=None):
    ptah.get_settings(ptah.CFG_ID_PTAH, registry)['access_manager'] = manager
        


src/p/t/ptah-0.8.0/ptah/manage/__init__.py   ptah(Download)
 
from ptah.manage.manage import check_access
from ptah.manage.manage import set_access_manager
from ptah.manage.manage import PtahAccessManager
 

src/p/t/ptah-HEAD/ptah/manage/__init__.py   ptah(Download)
 
from ptah.manage.manage import check_access
from ptah.manage.manage import set_access_manager
from ptah.manage.manage import PtahAccessManager
 

src/p/t/ptah-0.8.0/ptah/manage/tests/test_manage.py   ptah(Download)
    def test_manage_module(self):
        from ptah.manage.manage import \
           module, MANAGE_ID, PtahModule, PtahManageRoute,\
           PtahAccessManager, set_access_manager
 
        self.init_ptah()
 
        set_access_manager(PtahAccessManager())
 
        MODULES = config.get_cfg_storage(MANAGE_ID)
            return True
 
        set_access_manager(accessManager)
 
        route = PtahManageRoute(self.request)
    def test_manage_view(self):
        from ptah.manage.manage import \
            module, PtahModule, PtahManageRoute, ManageView, \
            set_access_manager
 
        self.init_ptah()
 
        set_access_manager(accessManager)
        ptah.auth_service.set_userid('test-user')
 

src/p/t/ptah-HEAD/ptah/manage/tests/test_manage.py   ptah(Download)
    def test_manage_module(self):
        from ptah.manage.manage import \
           module, MANAGE_ID, PtahModule, PtahManageRoute,\
           PtahAccessManager, set_access_manager
 
        self.init_ptah()
 
        set_access_manager(PtahAccessManager())
 
        MODULES = config.get_cfg_storage(MANAGE_ID)
            return True
 
        set_access_manager(accessManager)
 
        route = PtahManageRoute(self.request)
    def test_manage_view(self):
        from ptah.manage.manage import \
            module, PtahModule, PtahManageRoute, ManageView, \
            set_access_manager
 
        self.init_ptah()
 
        set_access_manager(accessManager)
        ptah.auth_service.set_userid('test-user')