Ignore:
Timestamp:
8 Feb 2006, 12:47:31 (19 years ago)
Author:
joachim
Message:

=creating the WAeUP Tool

File:
1 edited

Legend:

Unmodified
Added
Removed
  • waeup_product/trunk/__init__.py

    r179 r197  
     1from Products.CMFCore.utils import ContentInit, ToolInit
    12from Products.CMFCore.DirectoryView import registerDirectory
    23from Products.CMFCore import utils as cmfutils
     
    1112import Widgets
    1213import WAeUPPermissions
     14import WAeUPTool
     15
     16tools = (
     17    WAeUPTool.WAeUPTool,
     18)
    1319
    1420fti = (Students.student_fti,
     
    6167                       )
    6268
    63 def initialize(registrar):
    64     cmfutils.ContentInit(
    65         'WAeUP',
     69def initialize(context):
     70    ToolInit(
     71        'WAeUP Tool',
     72        tools = tools,
     73        icon = 'tool.png',
     74    ).initialize(context)
     75
     76    ContentInit(
     77        'WAeUP Contenttypes',
    6678        content_types=contentClasses,
    6779        permission=AddPortalContent,
     
    6981        fti=fti,
    7082       
    71     ).initialize(registrar)
     83    ).initialize(context)
     84       
     85    context.registerClass(WAeUPTool.WAeUPTool,
     86                          constructors=(WAeUPTool.addWAeUPToolForm,
     87                          WAeUPTool.addWAeUPTool,))
     88
Note: See TracChangeset for help on using the changeset viewer.