Last change
on this file since 96 was
89,
checked in by joachim, 19 years ago
|
=make workflows work
|
-
Property svn:keywords set to
Id
|
File size:
1.4 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 | Students.studentpersonal_fti, |
---|
15 | Students.jamb_fti, |
---|
16 | Faculty.faculty_fti, |
---|
17 | Faculty.department_fti, |
---|
18 | Faculty.course_fti, |
---|
19 | ) |
---|
20 | |
---|
21 | contentClasses = (University.University, |
---|
22 | Students.StudentsFolder, |
---|
23 | Students.Student, |
---|
24 | Students.StudentPersonal, |
---|
25 | Students.Jamb, |
---|
26 | Faculty.Faculty, |
---|
27 | Faculty.Department, |
---|
28 | Faculty.Course, |
---|
29 | ) |
---|
30 | |
---|
31 | contentConstructors = (University.addUniversity, |
---|
32 | Students.addStudentsFolder, |
---|
33 | Students.addStudent, |
---|
34 | Students.addStudentPersonal, |
---|
35 | Students.addJamb, |
---|
36 | Faculty.addFaculty, |
---|
37 | Faculty.addDepartment, |
---|
38 | Faculty.addCourse, |
---|
39 | ) |
---|
40 | |
---|
41 | def initialize(registrar): |
---|
42 | cmfutils.ContentInit( |
---|
43 | 'WAeUP', |
---|
44 | content_types=contentClasses, |
---|
45 | permission=AddPortalContent, |
---|
46 | extra_constructors=contentConstructors, |
---|
47 | fti=fti, |
---|
48 | |
---|
49 | ).initialize(registrar) |
---|
Note: See
TracBrowser for help on using the repository browser.