Last change
on this file since 95 was
89,
checked in by joachim, 19 years ago
|
=make workflows work
|
-
Property svn:keywords set to
Id
|
File size:
1.4 KB
|
Rev | Line | |
---|
[19] | 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 | |
---|
[45] | 7 | import University |
---|
| 8 | import Students |
---|
[68] | 9 | import Faculty |
---|
[59] | 10 | import Widgets |
---|
[84] | 11 | import WAeUPPermissions |
---|
[19] | 12 | |
---|
[57] | 13 | fti = (Students.student_fti, |
---|
[89] | 14 | Students.studentpersonal_fti, |
---|
| 15 | Students.jamb_fti, |
---|
[68] | 16 | Faculty.faculty_fti, |
---|
| 17 | Faculty.department_fti, |
---|
| 18 | Faculty.course_fti, |
---|
| 19 | ) |
---|
[84] | 20 | |
---|
[45] | 21 | contentClasses = (University.University, |
---|
| 22 | Students.StudentsFolder, |
---|
[57] | 23 | Students.Student, |
---|
[89] | 24 | Students.StudentPersonal, |
---|
| 25 | Students.Jamb, |
---|
[68] | 26 | Faculty.Faculty, |
---|
| 27 | Faculty.Department, |
---|
| 28 | Faculty.Course, |
---|
[45] | 29 | ) |
---|
[19] | 30 | |
---|
[45] | 31 | contentConstructors = (University.addUniversity, |
---|
| 32 | Students.addStudentsFolder, |
---|
[57] | 33 | Students.addStudent, |
---|
[89] | 34 | Students.addStudentPersonal, |
---|
| 35 | Students.addJamb, |
---|
[68] | 36 | Faculty.addFaculty, |
---|
| 37 | Faculty.addDepartment, |
---|
| 38 | Faculty.addCourse, |
---|
[45] | 39 | ) |
---|
[19] | 40 | |
---|
| 41 | def initialize(registrar): |
---|
| 42 | cmfutils.ContentInit( |
---|
[45] | 43 | 'WAeUP', |
---|
[19] | 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.