web/views/plots.py
branchstable
changeset 3338 cd137d90f896
parent 3097 a7adeca85656
child 3408 c92170fca813
child 3689 deb13e88e037
--- a/web/views/plots.py	Mon Sep 21 11:55:50 2009 +0200
+++ b/web/views/plots.py	Mon Sep 21 12:15:32 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>' %