58 for category, defaultmenu in (('mainactions', box), |
58 for category, defaultmenu in (('mainactions', box), |
59 ('moreactions', other_menu), |
59 ('moreactions', other_menu), |
60 ('addrelated', None)): |
60 ('addrelated', None)): |
61 for action in actions.get(category, ()): |
61 for action in actions.get(category, ()): |
62 if category == 'addrelated': |
62 if category == 'addrelated': |
63 warn('"addrelated" category is deprecated, use "moreaction"' |
63 warn('[3.5] "addrelated" category is deprecated, use ' |
64 ' category w/ "addrelated" submenu', |
64 '"moreactions" category w/ "addrelated" submenu', |
65 DeprecationWarning) |
65 DeprecationWarning) |
66 defaultmenu = self._get_menu('addrelated', _('add'), _('add')) |
66 defaultmenu = self._get_menu('addrelated', _('add'), _('add')) |
67 if action.submenu: |
67 if action.submenu: |
68 menu = self._get_menu(action.submenu) |
68 menu = self._get_menu(action.submenu) |
69 else: |
69 else: |