Example #1
0
 def check_transaction_by_id(self, key, value):
     q = ["-E", "meta", "%s=%s" % (key, Converter.clean_id(value))]
     try:
         next(self.run(q))
         return True
     except StopIteration:
         return False
Example #2
0
 def check_transaction_by_id(self, key, value):
     q = ["-E", "meta", "%s=%s" % (key, Converter.clean_id(value))]
     try:
         next(self.run(q))
         return True
     except StopIteration:
         return False
Example #3
0
 def check_transaction_by_id(self, key, value):
     cmd = ["reg", "tag:%s=%s" % (key, Converter.clean_id(value))]
     return self.run(cmd) != ''
Example #4
0
 def check_transaction_by_id(self, key, value):
     q = self.journal.query("-E meta %s=\"%s\"" %
                            (key, Converter.clean_id(value)))
     return len(q) > 0
Example #5
0
 def check_transaction_by_id(self, key, value):
     cmd = ["reg", "tag:%s=%s" % (key, Converter.clean_id(value))]
     return self.run(cmd) != ''
Example #6
0
 def check_transaction_by_id(self, key, value):
     q = self.journal.query("-E meta %s=\"%s\"" %
                            (key, Converter.clean_id(value)))
     return len(q) > 0
Example #7
0
 def check_transaction_by_id(self, key, value):
     return (self.get_transaction(
         ["-E", "meta",
          "%s=%s" % (key, Converter.clean_id(value))]) is not None)