# HG changeset patch # User sylvain.thenault@logilab.fr # Date 1235082766 -3600 # Node ID 78f03d6a15059af4be43b71f665a05910c0f15ff # Parent 01eb422591545aabd4e6a84c327ec955bc3fe222 avoid deprecation warning diff -r 01eb42259154 -r 78f03d6a1505 web/views/basetemplates.py --- a/web/views/basetemplates.py Thu Feb 19 23:31:43 2009 +0100 +++ b/web/views/basetemplates.py Thu Feb 19 23:32:46 2009 +0100 @@ -112,8 +112,8 @@ if etypefilter and etypefilter.propval('visible'): etypefilter.dispatch(w=w) self.nav_html = UStringIO() - self.pagination(self.req, self.rset, self.nav_html.write, - not (view and view.need_navigation)) + if view and view.need_navigation: + view.paginate(w=self.nav_html.write) w(_(self.nav_html.getvalue())) w(u'
\n') view.dispatch(w=w) diff -r 01eb42259154 -r 78f03d6a1505 web/views/startup.py --- a/web/views/startup.py Thu Feb 19 23:31:43 2009 +0100 +++ b/web/views/startup.py Thu Feb 19 23:32:46 2009 +0100 @@ -9,8 +9,8 @@ from logilab.mtconverter import html_escape +from cubicweb.view import StartupView from cubicweb.common.uilib import ureport_as_html, unormalize, ajax_replace_url -from cubicweb.common.view import StartupView from cubicweb.web.httpcache import EtagHTTPCacheManager _ = unicode