? override_portal_tabs.patch
Index: browser.py
===================================================================
RCS file: /home/cvs/cvsroot/plone/Products/rfasite/browser.py,v
retrieving revision 1.55.2.2
diff -u -r1.55.2.2 browser.py
--- browser.py	22 Jan 2008 22:30:19 -0000	1.55.2.2
+++ browser.py	3 Mar 2008 02:36:22 -0000
@@ -951,6 +951,18 @@
             subject='subscribe',
             body=mail_text
             )
+
+class NoOpNavigationTabs(utils.BrowserView):
+    def topLevelTabs(self, actions):
+        """ Return an empty list for the 'top_level_tabs' view used by
+        Plone.
+
+        This is an optimization, overrides the slow and largely
+        useless
+        CMFPlone.browser.navigation.CatalogNavigationTabs:topLevelTabs,
+        registered as 'portal_tabs_view' in
+        CMFPlone/browser/configure.zcml """
+        return []
         
 # Ported from Recipe 3.9 in Secure Programming Cookbook for C and C++ by
 # John Viega and Matt Messier (O'Reilly 2003)
Index: overrides.zcml
===================================================================
RCS file: overrides.zcml
diff -N overrides.zcml
--- /dev/null	1 Jan 1970 00:00:00 -0000
+++ overrides.zcml	3 Mar 2008 02:36:22 -0000
@@ -0,0 +1,13 @@
+<configure 
+    xmlns="http://namespaces.zope.org/zope"
+    xmlns:browser="http://namespaces.zope.org/browser">
+
+  <browser:page
+      for="*"
+      name="portal_tabs_view"
+      class=".browser.NoOpNavigationTabs"
+      permission="zope.Public"
+      allowed_attributes="topLevelTabs"
+      />
+        
+</configure>
