This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import threading | |
import cherrypy | |
from cherrypy.process import plugins | |
class Portier(threading.Thread): | |
""" | |
The Doorman (Portier) detects changes of message by listening to the | |
subscribed channel, opens 'the door' as a message appears, yield it | |
and closes the door once trough. |