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
|
Line | |
---|
1 | from Products.CMFCore.DirectoryView import registerDirectory |
---|
2 | from Products.CMFCore import utils as cmfutils |
---|
3 | from Products.CMFCore.CMFCorePermissions import AddPortalContent |
---|
4 | |
---|
5 | registerDirectory('skins', globals()) |
---|
6 | |
---|
7 | import University |
---|
8 | import Students |
---|
9 | import Faculty |
---|
10 | import Widgets |
---|
11 | |
---|
12 | fti = (Students.student_fti, |
---|
13 | Faculty.faculty_fti, |
---|
14 | Faculty.department_fti, |
---|
15 | Faculty.course_fti, |
---|
16 | ) |
---|
17 | contentClasses = (University.University, |
---|
18 | Students.StudentsFolder, |
---|
19 | Students.Student, |
---|
20 | Faculty.Faculty, |
---|
21 | Faculty.Department, |
---|
22 | Faculty.Course, |
---|
23 | ) |
---|
24 | |
---|
25 | contentConstructors = (University.addUniversity, |
---|
26 | Students.addStudentsFolder, |
---|
27 | Students.addStudent, |
---|
28 | Faculty.addFaculty, |
---|
29 | Faculty.addDepartment, |
---|
30 | Faculty.addCourse, |
---|
31 | ) |
---|
32 | |
---|
33 | def 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.