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

All Samples(20)  |  Call(0)  |  Derive(0)  |  Import(20)

        def module(name):
    info = config.DirectiveInfo()

    def wrapper(cls):
        discr = (MANAGE_ID, name)
        intr = config.Introspectable(
            MANAGE_ID, discr, cls.title, 'ptah-managemodule')
        intr['name'] = name
        intr['factory'] = cls
        intr['codeinfo'] = info.codeinfo

        def _complete(cfg, cls, name):
            cls.name = name
            cfg.get_cfg_storage(MANAGE_ID)[name] = cls

        info.attach(
            config.Action(
                _complete, (cls, name),
                discriminator=discr, introspectables=(intr,))
            )
        return cls

    return wrapper
        


src/p/t/ptah-0.8.0/ptah/manage/__init__.py   ptah(Download)
# ptah manage api
 
from ptah.manage.manage import module
from ptah.manage.manage import get_manage_url
 

src/p/t/ptah-HEAD/ptah/manage/__init__.py   ptah(Download)
# ptah manage api
 
from ptah.manage.manage import module
from ptah.manage.manage import get_manage_url
 

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
 
    def test_manage_view(self):
        from ptah.manage.manage import \
            module, PtahModule, PtahManageRoute, ManageView, \
            set_access_manager
 
    def test_manage_view_unavailable(self):
        from ptah.manage.manage import \
            module, PtahModule, PtahManageRoute, ManageView, \
            set_access_manager
 
    def test_manage_traverse(self):
        from ptah.manage.manage import \
            module, PtahModule, PtahManageRoute, set_access_manager
 
        @module('test-module')
    def test_manage_enable_modules(self):
        from ptah.manage.manage import \
            module, PtahModule, PtahManageRoute, ManageView, set_access_manager
 
        @module('test-module1')

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
 
    def test_manage_view(self):
        from ptah.manage.manage import \
            module, PtahModule, PtahManageRoute, ManageView, \
            set_access_manager
 
    def test_manage_view_unavailable(self):
        from ptah.manage.manage import \
            module, PtahModule, PtahManageRoute, ManageView, \
            set_access_manager
 
    def test_manage_traverse(self):
        from ptah.manage.manage import \
            module, PtahModule, PtahManageRoute, set_access_manager
 
        @module('test-module')
    def test_manage_enable_modules(self):
        from ptah.manage.manage import \
            module, PtahModule, PtahManageRoute, ManageView, set_access_manager
 
        @module('test-module1')