def retract_fact(self, message): if self._handle == 0: raise Exception('Queue has already been closed') if 'sid' in message: rules.queue_retract_fact(self._handle, str(message['sid']), self._ruleset_name, json.dumps(message, ensure_ascii=False)) else: rules.queue_retract_fact(self._handle, None, self._ruleset_name, json.dumps(message, ensure_ascii=False))
def retract_fact(self, message): if 'sid' in message: rules.queue_retract_fact(self._handle, str(message['sid']), self._ruleset_name, json.dumps(message, ensure_ascii=False)) else: rules.queue_retract_fact(self._handle, None, self._ruleset_name, json.dumps(message, ensure_ascii=False))
def queue_retract_fact(self, sid, ruleset_name, message): if sid != None: sid = str(sid) rules.queue_retract_fact(self._handle, sid, ruleset_name, json.dumps(message, ensure_ascii=False))
def queue_retract_fact(self, sid, ruleset_name, message): rules.queue_retract_fact(self._handle, str(sid), ruleset_name, json.dumps(message, ensure_ascii=False))
def retract_fact(self, message): rules.queue_retract_fact(self._handle, str(message['sid']), self._ruleset_name, json.dumps(message))
def queue_retract_fact(self, sid, ruleset_name, message): rules.queue_retract_fact(self._handle, str(sid), ruleset_name, json.dumps(message))