Some little python code to visualize an LDAP structure.
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 

19 lines
463 B

"""
Dispatch Events to registered handlers.
Author: Georg Hopp <ghopp@spamtitan.com>
"""
import threading
class EventThread(threading.Thread):
def __init__(self, dispatcher, name):
super(EventThread, self).__init__()
self._dispatcher = dispatcher
self._name = name
def run(self):
print 'start thread'
self._dispatcher.start(self._name)
print 'stop thread'
# vim: set ft=python et ts=8 sw=4 sts=4: