Package pyxmpp2 :: Package test :: Module _util :: Class EventRecorder
[hide private]

Class EventRecorder


An event handler which records all events received and aborts the main loop on the DisconnectedEvent.
Nested Classes [hide private]

Inherited from mainloop.interfaces.EventHandler: __metaclass__

Instance Methods [hide private]
 
__init__(self)
x.__init__(...) initializes x; see help(type(x)) for signature
 
handle_event(self, event)
Handle any event: store it in events_received.
 
handle_disconnected_event(self, event)
Handle the DisconnectedEvent: abort the main loop.

Inherited from object: __delattr__, __format__, __getattribute__, __hash__, __new__, __reduce__, __reduce_ex__, __repr__, __setattr__, __sizeof__, __str__, __subclasshook__

Class Variables [hide private]
  _abc_negative_cache_version = 28

Inherited from mainloop.interfaces.EventHandler: __abstractmethods__

Instance Variables [hide private]
list of Event events_received
events received
Properties [hide private]

Inherited from object: __class__

Method Details [hide private]

__init__(self)
(Constructor)

 
x.__init__(...) initializes x; see help(type(x)) for signature
Overrides: object.__init__
(inherited documentation)

handle_event(self, event)

 
Handle any event: store it in events_received.
Decorators:
  • @event_handler()

handle_disconnected_event(self, event)

 
Handle the DisconnectedEvent: abort the main loop.
Decorators:
  • @event_handler(DisconnectedEvent)