# HG changeset patch # User sylvain.thenault@logilab.fr # Date 1238170237 -3600 # Node ID ffe1b6f495e8951d62c6a88fc9d7d7fedcf532a5 # Parent a33deae7c6a2149992c38d975f8cb497d2b38283 avoid deprecation warning, pylint cleanup diff -r a33deae7c6a2 -r ffe1b6f495e8 web/views/editviews.py --- a/web/views/editviews.py Fri Mar 27 17:10:11 2009 +0100 +++ b/web/views/editviews.py Fri Mar 27 17:10:37 2009 +0100 @@ -34,8 +34,9 @@ def cell_call(self, row, col): rset, vid, divid, paginate = self.filter_box_context_info() + self.rset = rset self.w(u'
' % divid) - self.pagination(self.req, rset, w=self.w) + self.paginate(self.req, rset, w=self.w) self.wview(vid, rset, 'noresult') self.w(u'
') @@ -114,8 +115,9 @@ %s -""" % (hidden and 'hidden' or '', divid, selectid, html_escape(dumps(entity.eid)), - is_cell and 'true' or 'null', relname, '\n'.join(options)) +""" % (hidden and 'hidden' or '', divid, selectid, + html_escape(dumps(entity.eid)), is_cell and 'true' or 'null', relname, + '\n'.join(options)) def _get_select_options(self, entity, rschema, target): """add options to search among all entities of each possible type""" @@ -125,7 +127,8 @@ rtype = rschema.type for eview, reid in entity.vocabulary(rschema, target, self.limit): if reid is None: - options.append('' % html_escape(eview)) + options.append('' + % html_escape(eview)) else: optionid = relation_id(eid, rtype, target, reid) if optionid not in pending_inserts: