cosmetic
authorThierry Parmentelat <thierry.parmentelat@inria.fr>
Wed, 4 Sep 2013 15:46:13 +0000 (17:46 +0200)
committerThierry Parmentelat <thierry.parmentelat@inria.fr>
Wed, 4 Sep 2013 15:46:13 +0000 (17:46 +0200)
manifold/manifoldapi.py
views/templates/view-login.html

index 29c6c98..2524727 100644 (file)
@@ -31,7 +31,11 @@ class ManifoldAPI:
         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)
         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 
 
     # 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 
index 305b5c6..b28f13c 100644 (file)
@@ -5,15 +5,6 @@
 {% endblock unfold2_margin %}
 
 {% block unfold2_main %}
 {% 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'>
 <link rel="stylesheet" type="text/css" href="{{STATIC_URL}}/css/register.css" />
 <div style='padding: 20px;'>
   <div class='OneLabTitle'>