source: waeup_product/trunk/__init__.py @ 74

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

=search for jamb addmission

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