Last change
on this file since 2286 was
2285,
checked in by mylan, 14 years ago
|
Renamed hiddencolumn module into columns one
|
-
Property svn:eol-style set to
native
|
File size:
955 bytes
|
Line | |
---|
1 | from quintagroup.referencedatagridfield._field import ReferenceDataGridField |
---|
2 | from quintagroup.referencedatagridfield._field import ReferenceDataGridWidget |
---|
3 | |
---|
4 | from Products.CMFCore.permissions import AddPortalContent |
---|
5 | from Products.CMFCore.utils import ContentInit |
---|
6 | from Products.Archetypes.atapi import listTypes |
---|
7 | from Products.Archetypes.atapi import process_types |
---|
8 | |
---|
9 | PKG_NAME = 'quintagroup.referencedatagridfield' |
---|
10 | |
---|
11 | def initialize(context): |
---|
12 | """Initializer called when used as a Zope 2 product.""" |
---|
13 | # Example content type initialization |
---|
14 | import quintagroup.referencedatagridfield.examples |
---|
15 | import quintagroup.referencedatagridfield.columns |
---|
16 | content_types, constructors, ftis = process_types(listTypes(PKG_NAME), PKG_NAME,) |
---|
17 | |
---|
18 | ContentInit( |
---|
19 | '%s Content' % PKG_NAME, |
---|
20 | content_types = content_types, |
---|
21 | permission = AddPortalContent, |
---|
22 | extra_constructors = constructors, |
---|
23 | fti = ftis, |
---|
24 | ).initialize(context) |
---|
Note: See
TracBrowser
for help on using the repository browser.