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

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

src/a/r/archetypes.referencebrowserwidget-2.4.21/src/archetypes/referencebrowserwidget/__init__.py   archetypes.referencebrowserwidget(Download)
from Products.CMFCore.utils import ContentInit
from Products.Archetypes.atapi import process_types, listTypes
from Products.CMFCore.permissions import AddPortalContent
from archetypes.referencebrowserwidget.config import PROJECTNAME
from archetypes.referencebrowserwidget.config import WITH_SAMPLE_TYPES
def initialize(context):
    import demo
    demo  # pyflakes
    content_types, constructors, ftis = process_types(
        listTypes(PROJECTNAME),
        PROJECTNAME)

src/a/r/archetypes.referencebrowserwidget-2.4.21/src/archetypes/referencebrowserwidget/demo.py   archetypes.referencebrowserwidget(Download)
from DateTime import DateTime
 
from archetypes.referencebrowserwidget.config import PROJECTNAME
from archetypes.referencebrowserwidget.widget import ReferenceBrowserWidget
 
    constantDirectory = '/foo/constant'
 
registerType(RefBrowserDemo, PROJECTNAME)