source: waeup_product/trunk/__init__.py @ 63

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

=more

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