Last change
on this file since 86 was
84,
checked in by joachim, 19 years ago
|
=Roles and Facultymanagement, new themes used
|
-
Property svn:keywords set to
Id
|
File size:
1.2 KB
|
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 Faculty |
---|
10 | import Widgets |
---|
11 | import WAeUPPermissions |
---|
12 | |
---|
13 | fti = (Students.student_fti, |
---|
14 | Faculty.faculty_fti, |
---|
15 | Faculty.department_fti, |
---|
16 | Faculty.course_fti, |
---|
17 | ) |
---|
18 | |
---|
19 | contentClasses = (University.University, |
---|
20 | Students.StudentsFolder, |
---|
21 | Students.Student, |
---|
22 | Faculty.Faculty, |
---|
23 | Faculty.Department, |
---|
24 | Faculty.Course, |
---|
25 | ) |
---|
26 | |
---|
27 | contentConstructors = (University.addUniversity, |
---|
28 | Students.addStudentsFolder, |
---|
29 | Students.addStudent, |
---|
30 | Faculty.addFaculty, |
---|
31 | Faculty.addDepartment, |
---|
32 | Faculty.addCourse, |
---|
33 | ) |
---|
34 | |
---|
35 | def initialize(registrar): |
---|
36 | cmfutils.ContentInit( |
---|
37 | 'WAeUP', |
---|
38 | content_types=contentClasses, |
---|
39 | permission=AddPortalContent, |
---|
40 | extra_constructors=contentConstructors, |
---|
41 | fti=fti, |
---|
42 | |
---|
43 | ).initialize(registrar) |
---|
Note: See
TracBrowser for help on using the repository browser.