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