X-Git-Url: http://git.onelab.eu/?a=blobdiff_plain;f=engine%2Fmanifoldapi.py;h=111241c5c129737ff2b65c0394ba964224d830c6;hb=336244a760ef1e458d0f1a9acfc9d5d06f6e0c30;hp=ebb6b4a94a5ae62bc906cff6d2664cf1df343af6;hpb=f9cdd5524f3b0ed94df660fab8a2dffd99a3f557;p=myslice.git diff --git a/engine/manifoldapi.py b/engine/manifoldapi.py index ebb6b4a9..111241c5 100644 --- a/engine/manifoldapi.py +++ b/engine/manifoldapi.py @@ -25,7 +25,14 @@ class ManifoldAPI: def __getattr__(self, methodName): def func(*args, **kwds): result=getattr(self.proxy, methodName)(self.auth, *args, **kwds) - if debug: print '===> backend call',methodName, self.auth, self.url,'->',result + ### debug + if debug: + print '===> backend call',methodName, self.auth, self.url,'->', + 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" + ### return result return func