source: waeup_product/trunk/__init__.py @ 73

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

=search for jamb addmission

  • Property svn:keywords set to Id
File size: 1.2 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
[68]9import Faculty
[59]10import Widgets
[19]11
[57]12fti = (Students.student_fti,
[68]13       Faculty.faculty_fti,
14       Faculty.department_fti,
15       Faculty.course_fti,
16      )
[45]17contentClasses = (University.University,
18                  Students.StudentsFolder,
[57]19                  Students.Student,
[68]20                  Faculty.Faculty,
21                  Faculty.Department,
22                  Faculty.Course,
[45]23                 )
[19]24
[45]25contentConstructors = (University.addUniversity,
26                       Students.addStudentsFolder,
[57]27                       Students.addStudent,
[68]28                       Faculty.addFaculty,
29                       Faculty.addDepartment,
30                       Faculty.addCourse,
[45]31                       )
[19]32
33def initialize(registrar):
34    cmfutils.ContentInit(
[45]35        'WAeUP',
[19]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.