X-Git-Url: http://git.onelab.eu/?a=blobdiff_plain;f=manifoldapi%2Fmetadata.py;fp=manifoldapi%2Fmetadata.py;h=e4be9e04e91c601d15fc6fcc8ce8c8f9f38488d1;hb=29a9340139de5dc9537985c0fefa145b0b1c2afd;hp=300397cbd9de154da992d68d90e4a54190fe925c;hpb=135139e3638f53dab4643f249403870297e62412;p=unfold.git diff --git a/manifoldapi/metadata.py b/manifoldapi/metadata.py index 300397cb..e4be9e04 100644 --- a/manifoldapi/metadata.py +++ b/manifoldapi/metadata.py @@ -1,3 +1,5 @@ +from __future__ import print_function + import json import os.path @@ -34,10 +36,10 @@ class MetaData: # xxx need a way to export error messages to the UI if result['code'] == 1: # warning # messages.warning(request, result['description']) - print ("METADATA WARNING -",request,result['description']) + print(("METADATA WARNING -",request,result['description'])) elif result['code'] == 2: # messages.error(request, result['description']) - print ("METADATA ERROR -",request,result['description']) + print(("METADATA ERROR -",request,result['description'])) # XXX FAIL HERE XXX return @@ -58,5 +60,5 @@ class MetaData: return self.hash_by_object[object]['column'].sort() def get_field_type(self, object, field): - if debug: print "Temp fix for metadata::get_field_type() -> consider moving to manifold.core.metadata soon" + if debug: print("Temp fix for metadata::get_field_type() -> consider moving to manifold.core.metadata soon") return field