Commit 1f836cae authored by dkirov's avatar dkirov
Browse files

debug xml data

parent 884e66e5
...@@ -292,6 +292,8 @@ def pollin(self): ...@@ -292,6 +292,8 @@ def pollin(self):
if self.state < 0: if self.state < 0:
return return
if self.on_receive: if self.on_receive:
if received.strip():
self.DEBUG(received, 'got')
if hasattr(self._owner, 'Dispatcher'): if hasattr(self._owner, 'Dispatcher'):
self._owner.Dispatcher.Event('', DATA_RECEIVED, received) self._owner.Dispatcher.Event('', DATA_RECEIVED, received)
self.on_receive(received) self.on_receive(received)
...@@ -372,7 +374,7 @@ def _plug_idle(self): ...@@ -372,7 +374,7 @@ def _plug_idle(self):
def _on_send(self): def _on_send(self):
if self.sent_data and self.sent_data.strip(): if self.sent_data and self.sent_data.strip():
#~ self.DEBUG(self.sent_data,'sent') self.DEBUG(self.sent_data,'sent')
if hasattr(self._owner, 'Dispatcher'): if hasattr(self._owner, 'Dispatcher'):
self._owner.Dispatcher.Event('', DATA_SENT, self.sent_data) self._owner.Dispatcher.Event('', DATA_SENT, self.sent_data)
self.sent_data = None self.sent_data = None
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment