vendor/CMF/1.6-r41367/GenericSetup

view __init__.py @ 0:d62b03aaa782

CMF 1.6 r41367 snapshot.
author fguillaume
date Thu, 19 Jan 2006 16:49:24 +0000
parents
children
line source
1 """ GenericSetup product initialization.
3 $Id: __init__.py,v 1.1.1.1 2005/08/08 19:38:37 tseaver Exp $
4 """
6 from AccessControl import ModuleSecurityInfo
8 from interfaces import BASE, EXTENSION
9 from permissions import ManagePortal
10 from registry import _profile_registry as profile_registry
12 security = ModuleSecurityInfo('Products.GenericSetup')
13 security.declareProtected(ManagePortal, 'profile_registry')
15 def initialize(context):
17 import tool
19 context.registerClass(tool.SetupTool,
20 constructors=(#tool.addSetupToolForm,
21 tool.addSetupTool,
22 ),
23 permissions=(ManagePortal,),
24 interfaces=None,
25 icon='www/tool.png',
26 )
28 # BBB: for setup tools created with CMF 1.5 if CMFSetup isn't installed
29 try:
30 import Products.CMFSetup
31 except ImportError:
32 import bbb
33 import bbb.registry
34 import bbb.tool
36 __module_aliases__ = (('Products.CMFSetup', bbb),
37 ('Products.CMFSetup.registry', bbb.registry),
38 ('Products.CMFSetup.tool', bbb.tool))