source: waeup_product/trunk/__init__.py @ 139

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

=migrate + editing of folders

  • Property svn:keywords set to Id
File size: 2.1 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,
[139]17       Students.study_level_fti,
18       Students.semester_fti,
[103]19       Accommodation.accofolder_fti,
20       Accommodation.accommodation_fti,
[68]21       Faculty.faculty_fti,
22       Faculty.department_fti,
23       Faculty.course_fti,
[139]24       Faculty.course_ticket_fti,
[68]25      )
[84]26
[45]27contentClasses = (University.University,
28                  Students.StudentsFolder,
[57]29                  Students.Student,
[89]30                  Students.StudentPersonal,
31                  Students.Jamb,
[139]32                  Students.StudyLevel,
33                  Students.Semester,
[103]34                  Accommodation.AccoFolder,
35                  Accommodation.Accommodation,
[68]36                  Faculty.Faculty,
37                  Faculty.Department,
38                  Faculty.Course,
[139]39                  Faculty.CourseTicket,
[45]40                 )
[19]41
[45]42contentConstructors = (University.addUniversity,
43                       Students.addStudentsFolder,
[57]44                       Students.addStudent,
[89]45                       Students.addStudentPersonal,
[139]46                       Students.addJamb,
47                       Students.addStudyLevel,
48                       Students.addSemester,
[103]49                       Accommodation.addAccommodation,
50                       Accommodation.addAccoFolder,
[68]51                       Faculty.addFaculty,
52                       Faculty.addDepartment,
53                       Faculty.addCourse,
[139]54                       Faculty.addCourseTicket,
[45]55                       )
[19]56
57def initialize(registrar):
58    cmfutils.ContentInit(
[45]59        'WAeUP',
[19]60        content_types=contentClasses,
61        permission=AddPortalContent,
62        extra_constructors=contentConstructors,
63        fti=fti,
64       
65    ).initialize(registrar)
Note: See TracBrowser for help on using the repository browser.