def __init__(self, *a, **kw): self.allowed = kw.pop("allowed") UIProtocol.__init__(self, *a, **kw) self._is_transient_connection = True self.sent_messages = [] self.accepted_messages = [] self.do_raise = True self.transport = FakeTransport()
def capture_error(self, e, message=None): if self.do_raise: raise else: UIProtocol.capture_error(self, e, message)
def update_editor_running(self): if "update_editor_running" in self.allowed: return UIProtocol.update_editor_running(self)
def update_all(self): if "update_all" in self.allowed: return UIProtocol.update_all(self)