web/views/boxes.py
branchstable
changeset 3511 581de819106f
parent 3219 be8cfc00ae04
child 3524 a3431f4e2f40
child 3916 6e7af0e8e524
equal deleted inserted replaced
3510:bf746bf4a394 3511:581de819106f
    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: