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