Logo Search packages:      
Sourcecode: zope-linguaplone version File versions

__init__.py

"""
LinguaPlone

$Id: __init__.py,v 1.2.10.1 2004/04/14 14:18:40 tesdal Exp $
"""

from Products.CMFCore.CMFCorePermissions import AddPortalContent
from Products.CMFCore.utils import getToolByName, ContentInit
from Products.CMFCore.DirectoryView import registerDirectory
from Products.LinguaPlone.public import *
from Products.LinguaPlone.config import *

# Apply monkey patches
import patches

def initialize(context):
    # Register directory views
    registerDirectory('skins', GLOBALS)

    if INSTALL_DEMO_TYPES:
        import examples

    # Initialize content types
    content_types, constructors, ftis = process_types(
        listTypes(PKG_NAME), PKG_NAME,
        )

    ContentInit(
        '%s Content' % PKG_NAME,
        content_types = content_types,
        permission = AddPortalContent,
        extra_constructors = constructors,
        fti = ftis,
        ).initialize(context)


Generated by  Doxygen 1.6.0   Back to index