Last change
on this file since 53 was
45,
checked in by joachim, 19 years ago
|
major rewrite
|
-
Property svn:keywords set to
Id
|
File size:
816 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 = () |
---|
11 | contentClasses = (University.University, |
---|
12 | Students.StudentsFolder, |
---|
13 | #Students.Student, |
---|
14 | ) |
---|
15 | |
---|
16 | contentConstructors = (University.addUniversity, |
---|
17 | Students.addStudentsFolder, |
---|
18 | #Students.addStudent, |
---|
19 | ) |
---|
20 | |
---|
21 | def initialize(registrar): |
---|
22 | cmfutils.ContentInit( |
---|
23 | 'WAeUP', |
---|
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.