backport stable
authorSylvain Thénault <sylvain.thenault@logilab.fr>
Tue, 17 May 2011 07:37:13 +0200
changeset 7391 28ebf0b8d642
parent 7387 d240cff2d8ba (current diff)
parent 7390 be2fffc9ec17 (diff)
child 7392 230f2511ad28
backport stable
--- a/web/_exceptions.py	Thu Apr 28 17:05:22 2011 +0200
+++ b/web/_exceptions.py	Tue May 17 07:37:13 2011 +0200
@@ -53,6 +53,9 @@
         self.status = int(status)
         self.content = content
 
+    def __repr__(self):
+        return '%s(%r, %r)' % (self.__class__.__name__, self.status, self.content)
+
 class InvalidSession(CubicWebException):
     """raised when a session id is found but associated session is not found or
     invalid
--- a/web/views/plots.py	Thu Apr 28 17:05:22 2011 +0200
+++ b/web/views/plots.py	Tue May 17 07:37:13 2011 +0200
@@ -134,6 +134,7 @@
     title = _('generic plot')
     __select__ = multi_columns_rset() & all_columns_are_numbers()
     timemode = False
+    paginable = False
 
     def call(self, width=500, height=400):
         # prepare data
@@ -181,6 +182,7 @@
     class PieChartView(baseviews.AnyRsetView):
         __regid__ = 'piechart'
         pieclass = Pie
+        paginable = False
 
         __select__ = multi_columns_rset() & second_column_is_number()
 
--- a/web/views/urlrewrite.py	Thu Apr 28 17:05:22 2011 +0200
+++ b/web/views/urlrewrite.py	Tue May 17 07:37:13 2011 +0200
@@ -141,7 +141,8 @@
 def build_rset(rql, rgxgroups=None, cachekey=None, setuser=False,
                vid=None, vtitle=None, form={}, **kwargs):
 
-    def do_build_rset(inputurl, uri, req, schema):
+    def do_build_rset(inputurl, uri, req, schema, kwargs=kwargs):
+        kwargs = kwargs.copy()
         if rgxgroups:
             match = inputurl.match(uri)
             for arg, group in rgxgroups: