source: waeup_product/trunk/__init__.py @ 97

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

=make workflows work

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