Changeset 197 for waeup_product/trunk/__init__.py
- Timestamp:
- 8 Feb 2006, 12:47:31 (19 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
waeup_product/trunk/__init__.py
r179 r197 1 from Products.CMFCore.utils import ContentInit, ToolInit 1 2 from Products.CMFCore.DirectoryView import registerDirectory 2 3 from Products.CMFCore import utils as cmfutils … … 11 12 import Widgets 12 13 import WAeUPPermissions 14 import WAeUPTool 15 16 tools = ( 17 WAeUPTool.WAeUPTool, 18 ) 13 19 14 20 fti = (Students.student_fti, … … 61 67 ) 62 68 63 def initialize(registrar): 64 cmfutils.ContentInit( 65 'WAeUP', 69 def initialize(context): 70 ToolInit( 71 'WAeUP Tool', 72 tools = tools, 73 icon = 'tool.png', 74 ).initialize(context) 75 76 ContentInit( 77 'WAeUP Contenttypes', 66 78 content_types=contentClasses, 67 79 permission=AddPortalContent, … … 69 81 fti=fti, 70 82 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.