source: products/qPloneCaptchaField/trunk/__init__.py @ 3665

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

Building directory structure

  • Property svn:eol-style set to native
File size: 1.2 KB
Line 
1from Products.CMFCore import utils
2from Products.CMFCore.interfaces import ISiteRoot
3from Products.CMFCore.DirectoryView import registerDirectory
4from Products.Archetypes.atapi import process_types, listTypes
5from Products.GenericSetup import EXTENSION, profile_registry
6
7from permissions import ADD_PERMISSION
8from config import *
9import validators
10import content
11
12registerDirectory(SKINS_DIR, GLOBALS)
13
14def initialize(context):
15
16    content_types, constructors, ftis = process_types(listTypes(PROJECTNAME), PROJECTNAME)
17
18    utils.ContentInit(
19        PROJECTNAME + ' Content',
20        content_types      = content_types,
21        permission         = ADD_PERMISSION,
22        extra_constructors = constructors,
23        fti                = ftis,
24        ).initialize(context)
25
26    profile_desc = "Installs CaptchaField content type."
27    profile_registry.registerProfile('default',
28                                      PROJECTNAME,
29                                      profile_desc,
30                                     'profiles/default',
31                                      PROJECTNAME,
32                                      EXTENSION,
33                                      for_=ISiteRoot,
34                                    )
Note: See TracBrowser for help on using the repository browser.