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

Last change on this file since 3168 was 3168, checked in by vmaksymiv, 11 years ago

pep8, pyflakes fixes

  • Property svn:eol-style set to native
File size: 843 bytes
RevLine 
[1]1from Products.CMFCore import utils
2from Products.Archetypes.atapi import process_types, listTypes
3
[3168]4from quintagroup.pfg.captcha.config import PROJECTNAME
5from quintagroup.pfg.captcha.config import ADD_PERMISSION
[1]6
[3168]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
[2095]14
[3168]15
[1]16def initialize(context):
17
[3168]18    content_types, constructors, ftis = process_types(listTypes(PROJECTNAME),
19                                                      PROJECTNAME)
[1]20
21    utils.ContentInit(
22        PROJECTNAME + ' Content',
[3168]23        content_types=content_types,
24        permission=ADD_PERMISSION,
25        extra_constructors=constructors,
26        fti=ftis,
[1]27        ).initialize(context)
Note: See TracBrowser for help on using the repository browser.