|
Revision 126
(checked in by fenix, 3 years ago)
|
add docstring to all classes and functions
|
| Line | |
|---|
| 1 |
|
|---|
| 2 |
|
|---|
| 3 |
|
|---|
| 4 |
|
|---|
| 5 |
|
|---|
| 6 |
""" |
|---|
| 7 |
This is the init module for PloneSMSCommunicator that will initialize all |
|---|
| 8 |
types in tool. |
|---|
| 9 |
""" |
|---|
| 10 |
__docformat__ = 'restructuredtext' |
|---|
| 11 |
|
|---|
| 12 |
from Products.CMFCore.DirectoryView import registerDirectory |
|---|
| 13 |
from Products.Archetypes.public import * |
|---|
| 14 |
from AccessControl import allow_module |
|---|
| 15 |
from Products.CMFCore import utils |
|---|
| 16 |
|
|---|
| 17 |
from PloneSMSCommunicator import PloneSMSCommunicator |
|---|
| 18 |
from config import * |
|---|
| 19 |
|
|---|
| 20 |
registerDirectory(SKINS_DIR, GLOBALS) |
|---|
| 21 |
|
|---|
| 22 |
tools=(PloneSMSCommunicator,) |
|---|
| 23 |
|
|---|
| 24 |
allow_module('Products.PloneSMSCommunicator.Utils') |
|---|
| 25 |
allow_module('Products.PloneSMSCommunicator.config') |
|---|
| 26 |
|
|---|
| 27 |
def initialize(context): |
|---|
| 28 |
utils.ToolInit(PROJECTNAME, |
|---|
| 29 |
tools=tools, |
|---|
| 30 |
product_name=PROJECTNAME, |
|---|
| 31 |
icon= "tool.gif", |
|---|
| 32 |
).initialize(context) |
|---|