|
Revision 127
(checked in by fenix, 3 years ago)
|
add docstrings to all classes and functions
|
| Line | |
|---|
| 1 |
|
|---|
| 2 |
|
|---|
| 3 |
|
|---|
| 4 |
|
|---|
| 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) |
|---|