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
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
[59]9import Widgets
[19]10
[57]11fti = (Students.student_fti,
12)
[45]13contentClasses = (University.University,
14                  Students.StudentsFolder,
[57]15                  Students.Student,
[45]16                 )
[19]17
[45]18contentConstructors = (University.addUniversity,
19                       Students.addStudentsFolder,
[57]20                       Students.addStudent,
[45]21                       )
[19]22
23def initialize(registrar):
24    cmfutils.ContentInit(
[45]25        'WAeUP',
[19]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.