Last change
on this file since 51 was
45,
checked in by joachim, 19 years ago
|
major rewrite
|
-
Property svn:keywords set to
Id
|
File size:
816 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 | |
---|
[45] | 7 | import University |
---|
| 8 | import Students |
---|
[19] | 9 | |
---|
| 10 | fti = () |
---|
[45] | 11 | contentClasses = (University.University, |
---|
| 12 | Students.StudentsFolder, |
---|
| 13 | #Students.Student, |
---|
| 14 | ) |
---|
[19] | 15 | |
---|
[45] | 16 | contentConstructors = (University.addUniversity, |
---|
| 17 | Students.addStudentsFolder, |
---|
| 18 | #Students.addStudent, |
---|
| 19 | ) |
---|
[19] | 20 | |
---|
| 21 | def initialize(registrar): |
---|
| 22 | cmfutils.ContentInit( |
---|
[45] | 23 | 'WAeUP', |
---|
[19] | 24 | content_types=contentClasses, |
---|
| 25 | permission=AddPortalContent, |
---|
| 26 | extra_constructors=contentConstructors, |
---|
| 27 | fti=fti, |
---|
| 28 | |
---|
| 29 | ).initialize(registrar) |
---|
Note: See
TracBrowser for help on using the repository browser.