if not result: print "[no/empty result]"
elif isinstance (result,str): print "result is '%s'"%result
elif isinstance (result,list): print "result is a %d-elts list"%len(result)
- else: print "[dont know how to display result]"
+ elif isinstance (result,dict):
+ print "result is a dict with %d keys : %s"%(len(result),result.keys())
+ for (k,v) in result.iteritems(): print '...',k,':',v
+ print "result is a dict with %d keys : %s"%(len(result),result.keys()),
+ else: print "[dont know how to display result] %s"%result
# xxx temporary code for scaffolding a ManifolResult on top of an API that does not expose error info
# as of march 2013 we work with an API that essentially either returns the value, or raises
{% endblock unfold2_margin %}
{% block unfold2_main %}
-<!--
-<code> This page is currently connected to one authentication system:</code>
-<ul>
-<li> A manifold server, located at <code>{{ manifold_url }}</code>, (configured in <code>myslice/config.py</code>), and</li>
-</ul>
-<p>
-as a proof of concept, a set of hardwired user accounts used to be available but as these would not let you do anything valuable with the backend it is now turned off.
-</p>
--->
<link rel="stylesheet" type="text/css" href="{{STATIC_URL}}/css/register.css" />
<div style='padding: 20px;'>
<div class='OneLabTitle'>