# HG changeset patch # User Sylvain Thénault # Date 1305610633 -7200 # Node ID 28ebf0b8d64226732147a011594b89f091d7dc69 # Parent d240cff2d8ba1c19daa3c834aa3910473daacc1b# Parent be2fffc9ec17c5090a23d90aeee0ae1a98d6824a backport stable diff -r d240cff2d8ba -r 28ebf0b8d642 web/_exceptions.py --- 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 diff -r d240cff2d8ba -r 28ebf0b8d642 web/views/plots.py --- 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() diff -r d240cff2d8ba -r 28ebf0b8d642 web/views/urlrewrite.py --- 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: