source: WAeUP_SRP/branches/srpp_branch/__init__.py @ 5622

Last change on this file since 5622 was 179, checked in by joachim, 19 years ago

=post-primary results adding

  • Property svn:keywords set to Id
File size: 2.3 KB
Line 
1from Products.CMFCore.DirectoryView import registerDirectory
2from Products.CMFCore import utils as cmfutils
3from Products.CMFCore.CMFCorePermissions import AddPortalContent
4
5registerDirectory('skins', globals())
6
7import University
8import Students
9import Accommodation
10import Faculty
11import Widgets
12import WAeUPPermissions
13
14fti = (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
29contentClasses = (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
46contentConstructors = (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
63def 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)
Note: See TracBrowser for help on using the repository browser.