web/views/boxes.py
changeset 3524 a3431f4e2f40
parent 3491 48b26bfd6f02
parent 3511 581de819106f
child 3998 94cc7cad3d2d
equal deleted inserted replaced
3505:c0c7a944c00d 3524:a3431f4e2f40
    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: