merge stable
authorSylvain Thénault <sylvain.thenault@logilab.fr>
Mon, 19 Oct 2009 09:15:41 +0200
branchstable
changeset 3716 2a86851cf2ff
parent 3715 e3ccadb126d7 (current diff)
parent 3714 3cb7dcd9ae77 (diff)
child 3717 a0cb4ed395f4
merge
--- a/devtools/fill.py	Mon Oct 19 09:15:19 2009 +0200
+++ b/devtools/fill.py	Mon Oct 19 09:15:41 2009 +0200
@@ -397,9 +397,12 @@
             restrictions = ', '.join(c.restriction for c in constraints)
             q += ', %s' % restrictions
             # restrict object eids if possible
+            # XXX the attempt to restrict below in completely wrong
+            # disabling it for now
             objeids = select(restrictions, self.cursor)
         else:
             objeids = oedict.get(obj, frozenset())
+##         objeids = oedict.get(obj, frozenset())
         if subjcard in '?1' or objcard in '?1':
             for subjeid, objeid in used:
                 if subjcard in '?1' and subjeid in subjeids:
--- a/web/views/plots.py	Mon Oct 19 09:15:19 2009 +0200
+++ b/web/views/plots.py	Mon Oct 19 09:15:41 2009 +0200
@@ -112,7 +112,8 @@
         for idx, (label, plot) in enumerate(zip(self.labels, self.plots)):
             plotid = '%s_%s' % (figid, idx)
             plotdefs.append('var %s = %s;' % (plotid, self.dump_plot(plot)))
-            plotdata.append("{label: '%s', data: %s}" % (label, plotid))
+            # XXX ugly but required in order to not crash my demo
+            plotdata.append("{label: '%s', data: %s}" % (label.replace(u'&', u''), plotid))
         req.html_headers.add_onload(self.onload %
                                     {'plotdefs': '\n'.join(plotdefs),
                                      'figid': figid,