source: waeup_product/trunk/__init__.py @ 136

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

=accommodationhall

  • Property svn:keywords set to Id
File size: 1.7 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,
[89]15       Students.studentpersonal_fti,
16       Students.jamb_fti,
[103]17       Accommodation.accofolder_fti,
18       Accommodation.accommodation_fti,
[68]19       Faculty.faculty_fti,
20       Faculty.department_fti,
21       Faculty.course_fti,
22      )
[84]23
[45]24contentClasses = (University.University,
25                  Students.StudentsFolder,
[57]26                  Students.Student,
[89]27                  Students.StudentPersonal,
28                  Students.Jamb,
[103]29                  Accommodation.AccoFolder,
30                  Accommodation.Accommodation,
[68]31                  Faculty.Faculty,
32                  Faculty.Department,
33                  Faculty.Course,
[45]34                 )
[19]35
[45]36contentConstructors = (University.addUniversity,
37                       Students.addStudentsFolder,
[57]38                       Students.addStudent,
[89]39                       Students.addStudentPersonal,
[103]40                       Accommodation.addAccommodation,
41                       Accommodation.addAccoFolder,
[89]42                       Students.addJamb,
[68]43                       Faculty.addFaculty,
44                       Faculty.addDepartment,
45                       Faculty.addCourse,
[45]46                       )
[19]47
48def initialize(registrar):
49    cmfutils.ContentInit(
[45]50        'WAeUP',
[19]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.