source: waeup_product/trunk/__init__.py @ 196

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

=post-primary results adding

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