Changeset 1970 in products for quintagroup.pfg.captcha/trunk/quintagroup/pfg/captcha
- Timestamp:
- Mar 22, 2010 3:32:20 PM (14 years ago)
- Location:
- quintagroup.pfg.captcha/trunk/quintagroup/pfg/captcha
- Files:
-
- 25 added
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
quintagroup.pfg.captcha/trunk/quintagroup/pfg/captcha/__init__.py
r1969 r1970 1 from zope.i18nmessageid import MessageFactory 2 ExamplePortletMessageFactory = MessageFactory('quintagroup.pfg.captcha') 1 from Products.CMFCore import utils 2 from Products.CMFCore.interfaces import ISiteRoot 3 from Products.CMFCore.DirectoryView import registerDirectory 4 from Products.Archetypes.atapi import process_types, listTypes 5 from Products.GenericSetup import EXTENSION, profile_registry 6 7 from permissions import ADD_PERMISSION 8 from config import * 9 import validators 10 import content 11 12 registerDirectory(SKINS_DIR, GLOBALS) 3 13 4 14 def initialize(context): 5 """Initializer called when used as a Zope 2 product.""" 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 TracChangeset
for help on using the changeset viewer.