Module pyinotify :: Class PrintAllEvents
[hide private]
[frames] | no frames]

Class PrintAllEvents

source code


Dummy class used to print events strings representations. For instance this class is used from command line to print all received events to stdout.

Instance Methods [hide private]
 
my_init(self, out=None)
This method is called from base constructor ProcessEvent.__init__().
source code
 
process_default(self, event)
Writes event string representation to file object provided to my_init().
source code

Inherited from ProcessEvent: __call__, __init__, nested_pevent, process_IN_Q_OVERFLOW

Inherited from _ProcessEvent: __repr__

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

Class Variables [hide private]

Inherited from ProcessEvent: pevent

Properties [hide private]

Inherited from object: __class__

Method Details [hide private]

my_init(self, out=None)

source code 

This method is called from base constructor ProcessEvent.__init__(). This method is useless here and is meant to be redifined in a subclass of ProcessEvent. In effect, when subclassing just override this method if you want to provide custom initialization to your subclass' instance. You MUST pass keyword arguments though.

Parameters:
  • out (Object providing a valid file object interface.) - Where events will be written.
Overrides: ProcessEvent.my_init

process_default(self, event)

source code 

Writes event string representation to file object provided to my_init().

Parameters:
  • event (Event instance) - Event to be processed. Can be of any type of events but IN_Q_OVERFLOW events (see method process_IN_Q_OVERFLOW).
Overrides: ProcessEvent.process_default