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