X-Git-Url: http://git.onelab.eu/?a=blobdiff_plain;f=manifold%2Fmetadata.py;h=4fbbc0668ef1fb63e43690f71494394e85383bd4;hb=3d4eda1ced96e2fe552a07fd5014563351d8378e;hp=6f4c5ce622ab0c76814eb543c7d7cfc3ebe85c8c;hpb=c82cd94c927d1f2ccf60a0f3b1a014c1425b1727;p=unfold.git diff --git a/manifold/metadata.py b/manifold/metadata.py index 6f4c5ce6..4fbbc066 100644 --- a/manifold/metadata.py +++ b/manifold/metadata.py @@ -1,4 +1,5 @@ import json +import os.path from manifold.manifoldresult import ManifoldResult from manifold.manifoldapi import ManifoldAPI @@ -17,7 +18,7 @@ class MetaData: self.hash_by_object={} def fetch (self): - offline_filename="offline-metadata.json" + offline_filename="%s/../offline-metadata.json"%os.path.dirname(__file__) if work_offline: try: with file(offline_metadata) as f: @@ -33,7 +34,8 @@ class MetaData: # 'column.resource_type', 'column.value_type', # 'column.allowed_values', 'column.platforms.platform', # 'column.platforms.platform_url'] - result = manifold_api.Get({ + result = manifold_api.forward({ + 'action': 'get', 'object': 'local:object', # proposed to replace metadata:table 'fields': fields })