SVN: CMF/trunk/CMFCore/PortalFolder.py - enabled 'Components' ZMI tab

Yvo Schubbe <[email protected]> Thu, 2 Aug 2007 14:34:04 -0400 (EDT)
Newsgroups gmane.comp.web.zope.cmf.cvs
Message-ID <20070802183404.354932038BC__19802.4842808538$1186079654$gmane$org@mail.zope.org>
Log message for revision 78548:
  - enabled 'Components' ZMI tab

Changed:
  U   CMF/trunk/CMFCore/PortalFolder.py

-=-
Modified: CMF/trunk/CMFCore/PortalFolder.py
===================================================================
--- CMF/trunk/CMFCore/PortalFolder.py	2007-08-02 18:33:38 UTC (rev 78547)
+++ CMF/trunk/CMFCore/PortalFolder.py	2007-08-02 18:34:03 UTC (rev 78548)
@@ -59,8 +59,12 @@
 
     description = ''
 
-    manage_options = ( Folder.manage_options +
-                       CMFCatalogAware.manage_options )
+    manage_options = ( Folder.manage_options[:1]
+                     + ({'label': 'Components',
+                         'action': 'manage_components'},)
+                     + Folder.manage_options[1:]
+                     + CMFCatalogAware.manage_options
+                     )
 
     def __init__(self, id, title='', description=''):
         self.id = id