source: waeup_product/trunk/__init__.py @ 84

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

=Roles and Facultymanagement, new themes used

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