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