Public Member Functions | |
def | __init__ |
obtains the blacklist and the whitelist | |
def | process_default |
fills the queue with events attemping to whitelist and blacklist info | |
def | process_IN_DELETE_SELF |
processes deleted events | |
def | process_IN_MODIFY |
processes modified events | |
def | process_IN_CREATE |
processes creation events | |
def | process_IN_DELETE |
processes deleted events | |
def | extractEvent |
extract the first event on the top of the queue | |
Static Private Attributes | |
list | __eventQueue = [] |
__blacklist = None | |
__whitelist = None | |
__reBlacklist = None | |
int | __rfd = 0 |
file descriptor to read from the pipe | |
int | __wfd = 0 |
file descruptor to write on the pipe | |
__text = None | |
text for the GUI |
Handler inherits from ProcessEvent and overrides the process of the super class to bring the desired functionality to this module
def Handler.Handler.__init__ | ( | self, | ||
whitelist, | ||||
blacklist, | ||||
reBlacklist, | ||||
rfd, | ||||
wfd, | ||||
text | ||||
) |
obtains the blacklist and the whitelist
This constructor adds the necesary list of watched and not watched elements
source | list of strings a list of directories to watch | |
whitelist | the set of watched directories | |
blacklist | the set of ignored files or directories |
def Handler.Handler.process_default | ( | self, | ||
event | ||||
) |
fills the queue with events attemping to whitelist and blacklist info
If an event is raised on a blacklisted file or directory, the event is not queued
def Handler.Handler.process_IN_DELETE_SELF | ( | self, | ||
event | ||||
) |
processes deleted events
Informs of a delete event on a directly watched file or dir and calls the default process
event | obect that contains the relevant information about the raised event |
def Handler.Handler.process_IN_MODIFY | ( | self, | ||
event | ||||
) |
processes modified events
Informs of a modify event and calls the default process
event | obect that contains the relevant information about the raised event |
def Handler.Handler.process_IN_CREATE | ( | self, | ||
event | ||||
) |
processes creation events
Informs of a creation event and calls the default process
event | obect that contains the relevant information about the raised event |
def Handler.Handler.process_IN_DELETE | ( | self, | ||
event | ||||
) |
processes deleted events
Informs of a delete event into a watched directory and calls the default process
event | obect that contains the relevant information about the raised event |
def Handler.Handler.extractEvent | ( | self | ) |
extract the first event on the top of the queue
list Handler.Handler.__eventQueue = [] [static, private] |
Handler.Handler.__blacklist = None [static, private] |
Handler.Handler.__whitelist = None [static, private] |
Handler.Handler.__reBlacklist = None [static, private] |
int Handler.Handler.__rfd = 0 [static, private] |
file descriptor to read from the pipe
int Handler.Handler.__wfd = 0 [static, private] |
file descruptor to write on the pipe
Handler.Handler.__text = None [static, private] |
text for the GUI