[views/plot] replace bogus jsoncall computation by something (statistically) more reliable (json_request being set to True in the JSoncontroller stable
authorAurelien Campeas <aurelien.campeas@logilab.fr>
Thu, 04 Feb 2010 11:32:13 +0100
branchstable
changeset 4453 b8df4eaffd47
parent 4452 5d6dec2c4650
child 4454 aba1b563705b
[views/plot] replace bogus jsoncall computation by something (statistically) more reliable (json_request being set to True in the JSoncontroller
web/views/plots.py
--- a/web/views/plots.py	Thu Feb 04 11:30:47 2010 +0100
+++ b/web/views/plots.py	Thu Feb 04 11:32:13 2010 +0100
@@ -124,7 +124,7 @@
                                      'figid': figid,
                                      'plotdata': ','.join(plotdata),
                                      'mode': self.timemode and "'time'" or 'null'},
-                                    jsoncall=req.form.get('jsoncall', False))
+                                    jsoncall=req.json_request)
 
 
 class PlotView(baseviews.AnyRsetView):