source: products/quintagroup.pfg.captcha/trunk/quintagroup/pfg/captcha/__init__.py @ 2095

Last change on this file since 2095 was 2095, checked in by mylan, 12 years ago

#174: updated dependency order, make Captcha{Field,Widget,Validator} importable directly from the package root

  • Property svn:eol-style set to native
File size: 641 bytes
Line 
1from Products.CMFCore import utils
2from Products.Archetypes.atapi import process_types, listTypes
3
4from config import PROJECTNAME
5from config import ADD_PERMISSION
6
7from field import CaptchaField
8from widget import CaptchaWidget
9from validator import CaptchaValidator
10
11def initialize(context):
12
13    content_types, constructors, ftis = process_types(listTypes(PROJECTNAME), PROJECTNAME)
14
15    utils.ContentInit(
16        PROJECTNAME + ' Content',
17        content_types      = content_types,
18        permission         = ADD_PERMISSION,
19        extra_constructors = constructors,
20        fti                = ftis,
21        ).initialize(context)
Note: See TracBrowser for help on using the repository browser.