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