read form arg specifying json call context (to make it work under json controller) stable
authorAurelien Campeas <aurelien.campeas@logilab.fr>
Fri, 23 Oct 2009 15:43:30 +0200
branchstable
changeset 3785 78909a156011
parent 3784 2465ef6aef5f
child 3786 11d98118f0eb
read form arg specifying json call context (to make it work under json controller)
web/views/plots.py
--- a/web/views/plots.py	Thu Oct 22 11:07:05 2009 +0200
+++ b/web/views/plots.py	Fri Oct 23 15:43:30 2009 +0200
@@ -118,7 +118,8 @@
                                     {'plotdefs': '\n'.join(plotdefs),
                                      'figid': figid,
                                      'plotdata': ','.join(plotdata),
-                                     'mode': self.timemode and "'time'" or 'null'})
+                                     'mode': self.timemode and "'time'" or 'null'},
+                                    jsoncall=req.form.get('jsoncall', False))
 
 
 class PlotView(baseviews.AnyRsetView):