source: waeup_product/trunk/__init__.py @ 173

Last change on this file since 173 was 166, checked in by joachim, 19 years ago

=more enhancements

  • Property svn:keywords set to Id
File size: 2.2 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,
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]28contentClasses = (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]44contentConstructors = (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
60def 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)
Note: See TracBrowser for help on using the repository browser.