source: products/collective.referencedatagridfield/trunk/collective/referencedatagridfield/__init__.py

Last change on this file was 2353, checked in by mylan, 14 years ago

Rename all quintagroup occurence to collective, remove copyright from LICENSE.txt, update keywords, author in setup.py

  • Property svn:eol-style set to native
File size: 950 bytes
Line 
1from collective.referencedatagridfield._field import ReferenceDataGridField
2from collective.referencedatagridfield._field import ReferenceDataGridWidget
3
4from Products.CMFCore.permissions import AddPortalContent
5from Products.CMFCore.utils import ContentInit
6from Products.Archetypes.atapi import listTypes
7from Products.Archetypes.atapi import process_types
8
9PKG_NAME = 'collective.referencedatagridfield'
10
11def initialize(context):
12    """Initializer called when used as a Zope 2 product."""
13    # Example content type initialization
14    import collective.referencedatagridfield.examples
15    import collective.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.