web/views/plots.py
changeset 10669 155c29e0ed1c
parent 10666 7f6b5f023884
child 10688 fa29f3628a1b
--- a/web/views/plots.py	Tue Sep 15 17:10:58 2015 +0200
+++ b/web/views/plots.py	Fri Sep 18 14:29:53 2015 +0200
@@ -119,7 +119,7 @@
         if req.ie_browser():
             req.add_js('excanvas.js')
         req.add_js(('jquery.flot.js', 'cubicweb.flot.js'))
-        figid = u'figure%s' % req.varmaker.next()
+        figid = u'figure%s' % next(req.varmaker)
         plotdefs = []
         plotdata = []
         self.w(u'<div id="%s" style="width: %spx; height: %spx;"></div>' %