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