Beispiel #1
0
 def run_method_raw(self, nid, method, params):
     try:
         node = self.tracker.get(nid)
         handler = self.methods.find(method, node.tags)
     except VelesException as e:
         return bad_future(e)
     return handler.run_method(self, node, params)
Beispiel #2
0
 def transaction(self, checks, ops):
     try:
         self.tracker.transaction(checks, ops)
     except VelesException as e:
         return bad_future(e)
     return done_future(None)
Beispiel #3
0
 def get_list(self, parent, tags=frozenset(), pos_filter=PosFilter()):
     try:
         return done_future(self.tracker.get_list(parent, tags, pos_filter))
     except VelesException as e:
         return bad_future(e)
Beispiel #4
0
 def get_bindata(self, nid, key, start, end):
     try:
         return done_future(self.tracker.get_bindata(nid, key, start, end))
     except VelesException as e:
         return bad_future(e)
Beispiel #5
0
 def get_data(self, nid, key):
     try:
         return done_future(self.tracker.get_data(nid, key))
     except VelesException as e:
         return bad_future(e)
Beispiel #6
0
 def get(self, nid):
     try:
         return done_future(self.tracker.get(nid))
     except VelesException as e:
         return bad_future(e)