avoid deprecation warning, pylint cleanup tls-sprint
authorsylvain.thenault@logilab.fr
Fri, 27 Mar 2009 17:10:37 +0100
branchtls-sprint
changeset 1185 ffe1b6f495e8
parent 1184 a33deae7c6a2
child 1186 58b4ec2a77f5
avoid deprecation warning, pylint cleanup
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'<div id="%s">' % 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'</div>')
 
@@ -114,8 +115,9 @@
     %s
   </select>
 </div>
-""" % (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('<option class="separator">-- %s --</option>' % html_escape(eview))
+                options.append('<option class="separator">-- %s --</option>'
+                               % html_escape(eview))
             else:
                 optionid = relation_id(eid, rtype, target, reid)
                 if optionid not in pending_inserts: