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/a/r/archetypes.linguakeywordwidget-1.1/archetypes/linguakeywordwidget/__init__.py   archetypes.linguakeywordwidget(Download)
from Products.CMFCore.utils import ContentInit
from Products.Archetypes.atapi import process_types, listTypes
from Products.CMFCore.permissions import AddPortalContent
from archetypes.linguakeywordwidget.config import PROJECTNAME, WITH_SAMPLE_TYPES
from archetypes.linguakeywordwidget.widget import LinguaKeywordWidget
 
 
def initialize(context):
    if WITH_SAMPLE_TYPES:
            ).initialize(context)
 
if WITH_SAMPLE_TYPES:
    # setup sample types
    from Products.GenericSetup import EXTENSION, profile_registry