Last change
on this file since 2095 was
2095,
checked in by mylan, 14 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 | |
---|
1 | from Products.CMFCore import utils |
---|
2 | from Products.Archetypes.atapi import process_types, listTypes |
---|
3 | |
---|
4 | from config import PROJECTNAME |
---|
5 | from config import ADD_PERMISSION |
---|
6 | |
---|
7 | from field import CaptchaField |
---|
8 | from widget import CaptchaWidget |
---|
9 | from validator import CaptchaValidator |
---|
10 | |
---|
11 | def 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.