plug.py Source

_processors = []
def register_processor(p):
    _processors.append(p)
def unregister_processor(p):
    _processors.remove(p)
def process(o):
    for p in _processors:
        p(o)