Commit 3f19866f authored by Janez K's avatar Janez K

visualization of interactive widgets

parent 331c90dd
......@@ -1315,7 +1315,10 @@ def finish_interaction(request):
w.interaction_waiting = False
w.save()
mimetype = 'application/javascript'
data = simplejson.dumps({'status':'ok','message':'Widget '+w.name+' executed successfully.','widget_id':w.id})
if w.abstract_widget.visualization_view!='':
data = simplejson.dumps({'status':'visualize','message':'Visualizing widget '+w.name+'.','widget_id':w.id})
else:
data = simplejson.dumps({'status':'ok','message':'Widget '+w.name+' executed successfully.','widget_id':w.id})
except Exception,e:
mimetype = 'application/javascript'
w.error = True
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment