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

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

src/p/t/ptahcms-0.5.1/ptahcms/tinfo.py   ptahcms(Download)
import ptah
from ptah import config
from ptah.tinfo import TYPES_DIR_ID, TypeInformation
from ptahcms.content import Content
    # config actino and introspection info
    discr = (TYPES_DIR_ID, name)
    intr = config.Introspectable(TYPES_DIR_ID, discr, name, TYPES_DIR_ID)
    intr['name'] = name
    tinfo.cls = cls
    config.get_cfg_storage(TYPES_DIR_ID)[tinfo.__uri__] = tinfo
    # sql query for content resolver