Last change
on this file since 67 was
59,
checked in by joachim, 19 years ago
|
=more
|
-
Property svn:keywords set to
Id
|
File size:
851 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 | import Widgets |
---|
10 | |
---|
11 | fti = (Students.student_fti, |
---|
12 | ) |
---|
13 | contentClasses = (University.University, |
---|
14 | Students.StudentsFolder, |
---|
15 | Students.Student, |
---|
16 | ) |
---|
17 | |
---|
18 | contentConstructors = (University.addUniversity, |
---|
19 | Students.addStudentsFolder, |
---|
20 | Students.addStudent, |
---|
21 | ) |
---|
22 | |
---|
23 | def initialize(registrar): |
---|
24 | cmfutils.ContentInit( |
---|
25 | 'WAeUP', |
---|
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.