Last change
on this file since 2334 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
|
Rev | Line | |
---|
[2259] | 1 | from quintagroup.referencedatagridfield._field import ReferenceDataGridField |
---|
| 2 | from quintagroup.referencedatagridfield._field import ReferenceDataGridWidget |
---|
[2257] | 3 | |
---|
[2261] | 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 | |
---|
[2257] | 11 | def initialize(context): |
---|
| 12 | """Initializer called when used as a Zope 2 product.""" |
---|
[2261] | 13 | # Example content type initialization |
---|
| 14 | import quintagroup.referencedatagridfield.examples |
---|
[2285] | 15 | import quintagroup.referencedatagridfield.columns |
---|
[2261] | 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.