scaffold the forwarding of requests to the backend
[unfold.git] / engine / manifoldquery.py
index 188a1d4..e48c94d 100644 (file)
@@ -46,3 +46,14 @@ class ManifoldQuery:
             sq="{%s}"%sq
         
         return """ new Query('%(a)s', '%(m)s', '%(t)s', %(f)s, %(p)s, %(c)s, %(unique)s, '%(uuid)s', %(aq)s, %(sq)s)"""%locals()
+    
+    # 4amine
+    # xxx
+    # this should build an object from a dict as received from javascript
+    # to see an example just look at the server's output
+    # incoming POST <QueryDict: {u'query[method]': [u'slice'], u'query[fields][]': [u'slice_hrn'], u'query[ts]': [u'latest'], u'query[action]': [u'get']}>
+    def fill_from_dict (self, d):
+        # mandatory...
+        self.action=d['action']
+        self.method=d['method']
+        #