- results = manifold_api.Get('metadata:table', [], [], fields)
- self.hash_by_subject = dict ( [ (result['table'], result) for result in results ] )
+ rows_result = manifold_api.Get({
+ 'object': 'local:object', # proposed to replace metadata:table
+ 'fields': fields
+ })
+ rows = rows_result.ok_value()
+# API errors will be handled by the outer logic
+# if not rows:
+# print "Failed to retrieve metadata",rows_result.error()
+# rows=[]
+ self.hash_by_object = dict ( [ (row['table'], row) for row in rows ] )