# HG changeset patch # User Sylvain Thénault # Date 1252947697 -7200 # Node ID 11b6016e397072222fcb7768a4ac129bd4efc179 # Parent be8cfc00ae04954bd53d6f8eb275757a11814b22 cleanup, futur warning fixes :) diff -r be8cfc00ae04 -r 11b6016e3970 web/action.py --- a/web/action.py Mon Sep 14 19:01:24 2009 +0200 +++ b/web/action.py Mon Sep 14 19:01:37 2009 +0200 @@ -32,7 +32,7 @@ 'useractions', 'siteactions', 'hidden'), help=_('context where this component should be displayed')), } - site_wide = True # don't want user to configuration actions eproperties + site_wide = True # don't want user to configurate actions category = 'moreactions' # actions in category 'moreactions' can specify a sub-menu in which they should be filed submenu = None diff -r be8cfc00ae04 -r 11b6016e3970 web/box.py --- a/web/box.py Mon Sep 14 19:01:24 2009 +0200 +++ b/web/box.py Mon Sep 14 19:01:37 2009 +0200 @@ -60,7 +60,8 @@ result = [] actions_by_cat = {} for action in actions: - actions_by_cat.setdefault(action.category, []).append((action.title, action)) + actions_by_cat.setdefault(action.category, []).append( + (action.title, action) ) for key, values in actions_by_cat.items(): actions_by_cat[key] = [act for title, act in sorted(values)] for cat in self.categories_in_order: @@ -150,7 +151,7 @@ __select__ = EntityBoxTemplate.__select__ & partial_has_related_entities() def cell_call(self, row, col, **kwargs): - entity = self.entity(row, col) + entity = self.rset.get_entity(row, col) limit = self.req.property_value('navigation.related-limit') + 1 role = get_role(self) self.w(u'