Last change
on this file since 3606 was
3606,
checked in by vmaksymiv, 11 years ago
|
PPP fixes
|
-
Property svn:eol-style set to
native
|
File size:
834 bytes
|
Rev | Line | |
---|
[1] | 1 | from Products.CMFCore import utils |
---|
| 2 | from Products.Archetypes.atapi import process_types, listTypes |
---|
| 3 | |
---|
[3168] | 4 | from quintagroup.pfg.captcha.config import PROJECTNAME |
---|
| 5 | from quintagroup.pfg.captcha.config import ADD_PERMISSION |
---|
[1] | 6 | |
---|
[3168] | 7 | from quintagroup.pfg.captcha.field import CaptchaField |
---|
| 8 | from quintagroup.pfg.captcha.widget import CaptchaWidget |
---|
| 9 | from quintagroup.pfg.captcha.validator import CaptchaValidator |
---|
| 10 | #for pyflakes test |
---|
| 11 | CaptchaField |
---|
| 12 | CaptchaWidget |
---|
| 13 | CaptchaValidator |
---|
[2095] | 14 | |
---|
[3168] | 15 | |
---|
[1] | 16 | def 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, |
---|
[3606] | 26 | fti=ftis,).initialize(context) |
---|
Note: See
TracBrowser
for help on using the repository browser.