can't use anymore make_uid to generate a valid js var name stable
authorSylvain Thénault <sylvain.thenault@logilab.fr>
Mon, 21 Sep 2009 12:15:32 +0200
branchstable
changeset 3338 cd137d90f896
parent 3337 09d98666f9b3
child 3339 d1d643ef37f7
can't use anymore make_uid to generate a valid js var name
web/views/plots.py
--- 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>' %