Beispiel #1
0
 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()
Beispiel #2
0
 def capture_error(self, e, message=None):
     if self.do_raise:
         raise
     else:
         UIProtocol.capture_error(self, e, message)
Beispiel #3
0
 def update_editor_running(self):
     if "update_editor_running" in self.allowed:
         return UIProtocol.update_editor_running(self)
Beispiel #4
0
 def update_all(self):
     if "update_all" in self.allowed:
         return UIProtocol.update_all(self)