Last change
on this file since 19 was
19,
checked in by joachim, 19 years ago
|
initial import
|
-
Property svn:keywords set to
Id
|
File size:
657 bytes
|
Rev | Line | |
---|
[19] | 1 | from Products.CMFCore.DirectoryView import registerDirectory |
---|
| 2 | from Products.CMFCore import utils as cmfutils |
---|
| 3 | from Products.CMFCore.CMFCorePermissions import AddPortalContent |
---|
| 4 | |
---|
| 5 | registerDirectory('skins', globals()) |
---|
| 6 | |
---|
| 7 | import Student |
---|
| 8 | #import JambData |
---|
| 9 | |
---|
| 10 | fti = () |
---|
| 11 | fti += Student.factory_type_information |
---|
| 12 | |
---|
| 13 | contentClasses = (Student.Student,) |
---|
| 14 | |
---|
| 15 | contentConstructors = () |
---|
| 16 | contentConstructors += Student.addStudent, |
---|
| 17 | |
---|
| 18 | |
---|
| 19 | def initialize(registrar): |
---|
| 20 | cmfutils.ContentInit( |
---|
| 21 | 'WAeUP Types', |
---|
| 22 | content_types=contentClasses, |
---|
| 23 | permission=AddPortalContent, |
---|
| 24 | extra_constructors=contentConstructors, |
---|
| 25 | fti=fti, |
---|
| 26 | |
---|
| 27 | ).initialize(registrar) |
---|
Note: See
TracBrowser for help on using the repository browser.