[medusa] fighting handlers

Eugene Leitl Eugene.Leitl at lrz.uni-muenchen.de
Tue Apr 3 09:05:19 EDT 2001


Okay, since Medusa still seems to be in use I'm posting the same message I
sent to medusa at yahoogroups.com yesterday. Any idea what is causing the ph
and sch handlers (see below) to interfere with sh?

---------- Forwarded message ----------
Date: Mon, 2 Apr 2001 18:06:25 +0200 (MET DST)
From: Eugene Leitl <Eugene.Leitl at lrz.uni-muenchen.de>
Reply-To: medusa at yahoogroups.com
To: medusa at yahoogroups.com
Subject: [medusa] fighting handlers


I've added the following handlers to start_medusa.py :

 import script_handler
 import persistent
 sch = script_handler.script_handler (fs)
 
 ph = script_handler.persistent_script_handler()
 ph.add_module ('per', persistent)
 hs.install_handler (sch)
 hs.install_handler (ph)  

However, this knocked out the default status handler:

 # Create a status handler.  By default it binds to the URI '/status'...
 sh = status_handler.status_extension(status_objects)
 # ... and install it on the web server.
 hs.install_handler (sh)

Since it's quite useful, I wanted to keep it. Is there a way, or is there
just one handler allowed at a time? 



------------------------ Yahoo! Groups Sponsor ---------------------~-~>
Secure your servers with 128-bit SSL encryption!
Grab your copy of VeriSign's FREE Guide,
"Securing Your Web site for Business." Get it now!
http://us.click.yahoo.com/4cW4jC/e.WCAA/bT0EAA/CxaWlB/TM
---------------------------------------------------------------------_->

 

Your use of Yahoo! Groups is subject to http://docs.yahoo.com/info/terms/ 







More information about the Python-list mailing list