source: waeup_product/trunk/__init__.py @ 51

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

major rewrite

  • Property svn:keywords set to Id
File size: 816 bytes
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
[19]9
10fti = ()
[45]11contentClasses = (University.University,
12                  Students.StudentsFolder,
13                  #Students.Student,
14                 )
[19]15
[45]16contentConstructors = (University.addUniversity,
17                       Students.addStudentsFolder,
18                       #Students.addStudent,
19                       )
[19]20
21def initialize(registrar):
22    cmfutils.ContentInit(
[45]23        'WAeUP',
[19]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.