source: waeup_product/trunk/__init__.py @ 134

Last change on this file since 134 was 103, checked in by joachim, 19 years ago

=accommodationhall

  • Property svn:keywords set to Id
File size: 1.7 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.studentpersonal_fti,
16       Students.jamb_fti,
17       Accommodation.accofolder_fti,
18       Accommodation.accommodation_fti,
19       Faculty.faculty_fti,
20       Faculty.department_fti,
21       Faculty.course_fti,
22      )
23
24contentClasses = (University.University,
25                  Students.StudentsFolder,
26                  Students.Student,
27                  Students.StudentPersonal,
28                  Students.Jamb,
29                  Accommodation.AccoFolder,
30                  Accommodation.Accommodation,
31                  Faculty.Faculty,
32                  Faculty.Department,
33                  Faculty.Course,
34                 )
35
36contentConstructors = (University.addUniversity,
37                       Students.addStudentsFolder,
38                       Students.addStudent,
39                       Students.addStudentPersonal,
40                       Accommodation.addAccommodation,
41                       Accommodation.addAccoFolder,
42                       Students.addJamb,
43                       Faculty.addFaculty,
44                       Faculty.addDepartment,
45                       Faculty.addCourse,
46                       )
47
48def initialize(registrar):
49    cmfutils.ContentInit(
50        'WAeUP',
51        content_types=contentClasses,
52        permission=AddPortalContent,
53        extra_constructors=contentConstructors,
54        fti=fti,
55       
56    ).initialize(registrar)
Note: See TracBrowser for help on using the repository browser.