source: waeup_product/trunk/__init__.py @ 58

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

=more

  • Property svn:keywords set to Id
File size: 836 bytes
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
9
10fti = (Students.student_fti,
11)
12contentClasses = (University.University,
13                  Students.StudentsFolder,
14                  Students.Student,
15                 )
16
17contentConstructors = (University.addUniversity,
18                       Students.addStudentsFolder,
19                       Students.addStudent,
20                       )
21
22def initialize(registrar):
23    cmfutils.ContentInit(
24        'WAeUP',
25        content_types=contentClasses,
26        permission=AddPortalContent,
27        extra_constructors=contentConstructors,
28        fti=fti,
29       
30    ).initialize(registrar)
Note: See TracBrowser for help on using the repository browser.