Skip to content

Commit

Permalink
Improve error handling. Support additional (empty) menu manager for e…
Browse files Browse the repository at this point in the history
…rror context.

Because if context is an error instance we are not able to find the correct context for build the url.
  • Loading branch information
projekt01 committed Jan 5, 2008
1 parent c0151af commit 260a9d4
Showing 1 changed file with 12 additions and 0 deletions.
12 changes: 12 additions & 0 deletions src/z3c/menu/ready2go/manager.py
Original file line number Diff line number Diff line change
Expand Up @@ -26,3 +26,15 @@ class MenuManager(manager.ConditionalViewletManager):
"""Menu manager for all kind of menu items"""

zope.interface.implements(interfaces.IMenuManager)


class EmptyMenuManager(object):
"""Empty menu manager."""

zope.interface.implements(interfaces.IMenuManager)

def update(self):
pass

def render(self):
return u''

0 comments on commit 260a9d4

Please sign in to comment.