Represents a (possibly empty) sequence of user-defined functions.
Provides users with the opportunity of reacting to events internal to
Lyntin. All functions take a single argument which is a tuple.
Read through the hooks.py file for more information on the hooks that
come with Lyntin as well as which arguments they take in the arg
tuple.
| Method Summary |
| |
__init__(self,
mapper,
empty,
done)
Initializes. |
| |
clear(self)
Clears the functionlist. |
| int
|
count(self)
Returns how many functions are registered with this hook. |
| |
createOrderedList(self)
Goes through the functionlist and generates the orderedlist. |
| |
register(self,
func,
place)
Registers a function with a hook. |
| |
setFilterMapper(self,
newmapper)
Sets the filter mapper to a new mapper. |
| tuple of arguments
|
spamhook(self,
arglist,
mappingFunction,
emptyFunction,
doneFunction)
Sends out input to all the registrants of a hook. |
| |
unregister(self,
func)
Tries to remove a registrant from a hook--does pretty well. |