source: products/qSiloGroup/trunk/__init__.py @ 1

Last change on this file since 1 was 1, checked in by myroslav, 15 years ago

Building directory structure

  • Property svn:eol-style set to native
File size: 803 bytes
Line 
1from AccessControl import allow_module
2from Products.CMFCore import utils
3from Products.CMFCore.DirectoryView import registerDirectory
4
5from Products.Archetypes.public import process_types, listTypes
6
7from Products.qSiloGroup.config import *
8
9registerDirectory(SKINS_DIR, GLOBALS)
10
11allow_module('Products.qSiloGroup.utils')
12
13def initialize(context):
14    ##Import Types here to register them
15    from Products.qSiloGroup import SiloSiteMap
16
17    content_types, constructors, ftis = process_types(
18        listTypes(PROJECTNAME),
19        PROJECTNAME)
20
21    utils.ContentInit(
22        PROJECTNAME + ' Content',
23        content_types      = content_types,
24        permission         = VIEW_PERMISSION,
25        extra_constructors = constructors,
26        fti                = ftis,
27        ).initialize(context)
Note: See TracBrowser for help on using the repository browser.