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

Last change on this file since 3606 was 3606, checked in by vmaksymiv, 7 years ago

PPP fixes

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