|
Revision 261
(checked in by fenix, 3 years ago)
|
qPloneEpydoc import
|
| Line | |
|---|
| 1 |
|
|---|
| 2 |
|
|---|
| 3 |
|
|---|
| 4 |
|
|---|
| 5 |
|
|---|
| 6 |
import epydoc_patch |
|---|
| 7 |
from Products.Archetypes.public import * |
|---|
| 8 |
from Products.CMFCore import utils |
|---|
| 9 |
from Products.CMFCore.DirectoryView import registerDirectory |
|---|
| 10 |
from config import * |
|---|
| 11 |
|
|---|
| 12 |
from PloneEpydoc import PloneEpydoc |
|---|
| 13 |
|
|---|
| 14 |
registerDirectory(SKINS_DIR, GLOBALS) |
|---|
| 15 |
registerDirectory(DOCUMENTATION_DIR, GLOBALS) |
|---|
| 16 |
|
|---|
| 17 |
tools=(PloneEpydoc,) |
|---|
| 18 |
|
|---|
| 19 |
def initialize(context): |
|---|
| 20 |
utils.ToolInit(PROJECTNAME, |
|---|
| 21 |
tools=tools, |
|---|
| 22 |
product_name=PROJECTNAME, |
|---|
| 23 |
icon= "tool.gif", |
|---|
| 24 |
).initialize(context) |
|---|
| 25 |
|
|---|
| 26 |
content_types, constructors, ftis = process_types( |
|---|
| 27 |
listTypes(PROJECTNAME), |
|---|
| 28 |
PROJECTNAME) |
|---|
| 29 |
|
|---|
| 30 |
utils.ContentInit( |
|---|
| 31 |
PROJECTNAME + ' Content', |
|---|
| 32 |
content_types = content_types, |
|---|
| 33 |
permission = TOOL_PERMISSION, |
|---|
| 34 |
extra_constructors = constructors, |
|---|
| 35 |
fti = ftis, |
|---|
| 36 |
).initialize(context) |
|---|