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