|
Last change
on this file was
1,
checked in by myroslav, 21 years ago
|
|
Building directory structure
|
|
File size:
1.0 KB
|
| Line | |
|---|
| 1 | # Author: Melnychuk Taras |
|---|
| 2 | # Contact: fenix@quintagroup.com |
|---|
| 3 | # Date: $Date: 2005-11-23 12:34:02 |
|---|
| 4 | # Copyright: quintagroup.com |
|---|
| 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) |
|---|
Note: See
TracBrowser
for help on using the repository browser.