[Zope3-checkins] CVS: Zope3/src/zope/app/services - menu.py:1.6.4.5

Stephan Richter srichter at cosmos.phy.tufts.edu
Mon Sep 15 14:53:18 EDT 2003


Update of /cvs-repository/Zope3/src/zope/app/services
In directory cvs.zope.org:/tmp/cvs-serv23866/src/zope/app/services

Modified Files:
      Tag: parentgeddon-branch
	menu.py 
Log Message:
I have no clue why the condition failed. It is does it correctly now and 
the tests pass. Now all tests pass in the branch.


=== Zope3/src/zope/app/services/menu.py 1.6.4.4 => 1.6.4.5 ===
--- Zope3/src/zope/app/services/menu.py:1.6.4.4	Mon Sep 15 14:12:38 2003
+++ Zope3/src/zope/app/services/menu.py	Mon Sep 15 14:53:17 2003
@@ -150,7 +150,7 @@
 
     def queryInheritedMenu(self, menu_id, canBeLocal=False, default=None):
         """See zope.app.interfaces.services.menu.ILocalBrowserMenuService"""
-        if canBeLocal and self.queryLocalMenu(menu_id):
+        if canBeLocal and self.queryLocalMenu(menu_id) is not None:
             return self.queryLocalMenu(menu_id)
         # Another service (global) should always be available
         next = getNextService(self, BrowserMenu)




More information about the Zope3-Checkins mailing list