source: waeup_product/trunk/__init__.py @ 45

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

major rewrite

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