diff -r 2a4bbe3fa4f3 -r be8cfc00ae04 web/action.py --- a/web/action.py Mon Sep 14 18:59:17 2009 +0200 +++ b/web/action.py Mon Sep 14 19:01:24 2009 +0200 @@ -34,6 +34,12 @@ } site_wide = True # don't want user to configuration actions eproperties category = 'moreactions' + # actions in category 'moreactions' can specify a sub-menu in which they should be filed + submenu = None + + def fill_menu(self, box, menu): + """add action(s) to the given submenu of the given box""" + menu.append(box.box_action(self)) def url(self): """return the url associated with this action""" @@ -75,7 +81,7 @@ & partial_may_add_relation()) registered = accepts_compat(Action.registered) - category = 'addrelated' + submenu = 'addrelated' def url(self): current_entity = self.rset.get_entity(self.row or 0, self.col or 0)