# HG changeset patch # User sylvain.thenault@logilab.fr # Date 1235082771 -3600 # Node ID 3d9df99b0bfaaa7ee5711a03ccc9f049d556422c # Parent 78f03d6a15059af4be43b71f665a05910c0f15ff cleanup diff -r 78f03d6a1505 -r 3d9df99b0bfa view.py --- a/view.py Thu Feb 19 23:32:46 2009 +0100 +++ b/view.py Thu Feb 19 23:32:51 2009 +0100 @@ -369,12 +369,12 @@ self.category = 'startupview' def startup_rql(self): - """return some rql to be executedif the result set is None""" + """return some rql to be executed if the result set is None""" return self.default_rql def call(self, **kwargs): - """override call to execute rql returned by the .startup_rql - method if necessary + """override call to execute rql returned by the .startup_rql method if + necessary """ if self.rset is None: self.rset = self.req.execute(self.startup_rql()) @@ -383,8 +383,8 @@ self.wview(self.id, rset, row=i, **kwargs) def url(self): - """return the url associated with this view. We can omit rql if we - are on a result set on which we do not apply. + """return the url associated with this view. We can omit rql if we are + on a result set on which we do not apply. """ if not self.__select__(self.req, self.rset): return self.build_url(vid=self.id) diff -r 78f03d6a1505 -r 3d9df99b0bfa web/views/navigation.py --- a/web/views/navigation.py Thu Feb 19 23:32:46 2009 +0100 +++ b/web/views/navigation.py Thu Feb 19 23:32:51 2009 +0100 @@ -146,7 +146,7 @@ def limit_rset_using_paged_nav(self, req, rset, w, forcedisplay=False, - show_all_option=True, page_size = None): + show_all_option=True, page_size=None): showall = forcedisplay or req.form.get('__force_display') is not None nav = not showall and self.vreg.select_component('navigation', req, rset, page_size=page_size)