Last change
on this file since 2556 was
1,
checked in by myroslav, 19 years ago
|
Building directory structure
|
File size:
926 bytes
|
Rev | Line | |
---|
[1] | 1 | # Author: Melnychuk Taras |
---|
| 2 | # Contact: fenix@quintagroup.com |
---|
| 3 | # Date: $Date: 2005-11-23 13:10:22 +0200 (Thu, 23 Nov 2005) $ |
---|
| 4 | # Copyright: quintagroup.com |
---|
| 5 | |
---|
| 6 | """ |
---|
| 7 | This is the init module for ShortMessage product that will initialize all |
---|
| 8 | types in product. |
---|
| 9 | """ |
---|
| 10 | __docformat__ = 'restructuredtext' |
---|
| 11 | |
---|
| 12 | from Products.Archetypes.public import * |
---|
| 13 | from Products.CMFCore import utils |
---|
| 14 | from Products.CMFCore.DirectoryView import registerDirectory |
---|
| 15 | from config import * |
---|
| 16 | |
---|
| 17 | |
---|
| 18 | def initialize(context): |
---|
| 19 | |
---|
| 20 | import ShortMessage |
---|
| 21 | |
---|
| 22 | content_types, constructors, ftis = process_types( |
---|
| 23 | listTypes(PROJECTNAME), |
---|
| 24 | PROJECTNAME) |
---|
| 25 | |
---|
| 26 | utils.ContentInit( |
---|
| 27 | PROJECTNAME , |
---|
| 28 | content_types = content_types, |
---|
| 29 | permission = ADD_CONTENT_PERMISSION, |
---|
| 30 | extra_constructors = constructors, |
---|
| 31 | fti = ftis, |
---|
| 32 | ).initialize(context) |
---|
Note: See
TracBrowser
for help on using the repository browser.