[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 |
---|
[103] | 9 | import Accommodation |
---|
[68] | 10 | import Faculty |
---|
[59] | 11 | import Widgets |
---|
[84] | 12 | import WAeUPPermissions |
---|
[19] | 13 | |
---|
[57] | 14 | fti = (Students.student_fti, |
---|
[89] | 15 | Students.studentpersonal_fti, |
---|
| 16 | Students.jamb_fti, |
---|
[139] | 17 | Students.study_level_fti, |
---|
| 18 | Students.semester_fti, |
---|
[103] | 19 | Accommodation.accofolder_fti, |
---|
| 20 | Accommodation.accommodation_fti, |
---|
[68] | 21 | Faculty.faculty_fti, |
---|
| 22 | Faculty.department_fti, |
---|
| 23 | Faculty.course_fti, |
---|
[139] | 24 | Faculty.course_ticket_fti, |
---|
[68] | 25 | ) |
---|
[84] | 26 | |
---|
[45] | 27 | contentClasses = (University.University, |
---|
| 28 | Students.StudentsFolder, |
---|
[57] | 29 | Students.Student, |
---|
[89] | 30 | Students.StudentPersonal, |
---|
| 31 | Students.Jamb, |
---|
[139] | 32 | Students.StudyLevel, |
---|
| 33 | Students.Semester, |
---|
[103] | 34 | Accommodation.AccoFolder, |
---|
| 35 | Accommodation.Accommodation, |
---|
[68] | 36 | Faculty.Faculty, |
---|
| 37 | Faculty.Department, |
---|
| 38 | Faculty.Course, |
---|
[139] | 39 | Faculty.CourseTicket, |
---|
[45] | 40 | ) |
---|
[19] | 41 | |
---|
[45] | 42 | contentConstructors = (University.addUniversity, |
---|
| 43 | Students.addStudentsFolder, |
---|
[57] | 44 | Students.addStudent, |
---|
[89] | 45 | Students.addStudentPersonal, |
---|
[139] | 46 | Students.addJamb, |
---|
| 47 | Students.addStudyLevel, |
---|
| 48 | Students.addSemester, |
---|
[103] | 49 | Accommodation.addAccommodation, |
---|
| 50 | Accommodation.addAccoFolder, |
---|
[68] | 51 | Faculty.addFaculty, |
---|
| 52 | Faculty.addDepartment, |
---|
| 53 | Faculty.addCourse, |
---|
[139] | 54 | Faculty.addCourseTicket, |
---|
[45] | 55 | ) |
---|
[19] | 56 | |
---|
| 57 | def initialize(registrar): |
---|
| 58 | cmfutils.ContentInit( |
---|
[45] | 59 | 'WAeUP', |
---|
[19] | 60 | content_types=contentClasses, |
---|
| 61 | permission=AddPortalContent, |
---|
| 62 | extra_constructors=contentConstructors, |
---|
| 63 | fti=fti, |
---|
| 64 | |
---|
| 65 | ).initialize(registrar) |
---|