web/views/boxes.py
changeset 2650 18aec79ec3a3
parent 2443 b36f759bd2cc
child 2920 64322aa83a1d
child 3082 99ab33abf414
--- a/web/views/boxes.py	Mon Aug 03 09:37:13 2009 +0200
+++ b/web/views/boxes.py	Mon Aug 03 10:50:57 2009 +0200
@@ -51,7 +51,8 @@
                 title = u'%s - %s' % (title, etypelabel.lower())
         box = BoxWidget(title, self.id, _class="greyBoxFrame")
         # build list of actions
-        actions = self.vreg.possible_actions(self.req, self.rset, view=view)
+        actions = self.vreg['actions'].possible_actions(self.req, self.rset,
+                                                        view=view)
         add_menu = BoxMenu(_('add')) # 'addrelated' category
         other_menu = BoxMenu(_('more actions')) # 'moreactions' category
         searchstate = self.req.search_state[0]
@@ -207,7 +208,8 @@
 
     def call(self, **kwargs):
         box = BoxWidget(self.req._(self.title), self.id)
-        views = [v for v in self.vreg.possible_views(self.req, self.rset)
+        views = [v for v in self.vreg['views'].possible_views(self.req,
+                                                              rset=self.rset)
                  if v.category != 'startupview']
         for category, views in self.sort_actions(views):
             menu = BoxMenu(category)
@@ -227,7 +229,7 @@
 
     def call(self, **kwargs):
         box = BoxWidget(self.req._(self.title), self.id)
-        for view in self.vreg.possible_views(self.req, None):
+        for view in self.vreg['views'].possible_views(self.req, None):
             if view.category == 'startupview':
                 box.append(self.box_action(view))