web/views/plots.py
changeset 3369 7b88d12b4ee2
parent 3338 cd137d90f896
child 3408 c92170fca813
child 3689 deb13e88e037
--- a/web/views/plots.py	Thu Sep 17 15:52:46 2009 +0200
+++ b/web/views/plots.py	Tue Sep 22 12:11:12 2009 +0200
@@ -104,7 +104,7 @@
     def _render(self, req, width=500, height=400):
         # XXX IE requires excanvas.js
         req.add_js( ('jquery.flot.js', 'cubicweb.flot.js', 'excanvas.js') )
-        figid = u'figure%s' % make_uid('foo')
+        figid = u'figure%s' % req.varmaker.next()
         plotdefs = []
         plotdata = []
         self.w(u'<div id="%s" style="width: %spx; height: %spx;"></div>' %