web/views/tableview.py
changeset 8156 f47252e24354
parent 8102 619d41a4c770
child 8159 f8678956bd05
--- a/web/views/tableview.py	Mon Jan 09 22:40:43 2012 +0100
+++ b/web/views/tableview.py	Tue Jan 10 16:33:27 2012 +0100
@@ -458,12 +458,9 @@
     # layout callbacks #########################################################
 
     def facets_form(self, **kwargs):# XXX extracted from jqplot cube
-        try:
-            return self._cw.vreg['views'].select(
-                'facet.filtertable', self._cw, rset=self.cw_rset, view=self,
-                **kwargs)
-        except NoSelectableObject:
-            return None
+        return self._cw.vreg['views'].select_or_none(
+            'facet.filtertable', self._cw, rset=self.cw_rset, view=self,
+            **kwargs)
 
     @cachedproperty
     def domid(self):