git://git.onelab.eu
/
myslice.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Query trip: bridge the gap between FE nad BE
[myslice.git]
/
engine
/
manifoldquery.py
diff --git
a/engine/manifoldquery.py
b/engine/manifoldquery.py
index
e48c94d
..
47b261f
100644
(file)
--- a/
engine/manifoldquery.py
+++ b/
engine/manifoldquery.py
@@
-54,6
+54,9
@@
class ManifoldQuery:
# 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...
# 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']
- #
+ self.action=d['query[action]']
+ self.method=d['query[method]']
+ self.fields=[d['query[fields][]']]
+ self.timestamp=d['query[ts]']
+ #self.filters=d['filters']
+ #self.params=d['params']