[mod_python] get_options() problem

Michael C. Neel neel at mediapulse.com
Fri Jan 9 12:15:16 EST 2004


I use req.get_options(), this is 2.x - and it should be the same (at
least I hope it is) for 3.x

Mike

> -----Original Message-----
> From: Daniel West [mailto:dwmp at opti.cgi.net] 
> Sent: Friday, January 09, 2004 1:23 AM
> To: mod_python at modpython.org
> Subject: Re: [mod_python] get_options() problem
> 
> 
> 
> I found the DocumentRoot value I was after.  Duh.  
> req.document_root().
> 
> However, that server.get_options() probably needs some looking into.
> 
> -Dan
> 
> 
> 
> At 12:15 AM 1/9/2004 -0600, you wrote:
> 
> >According to the 3.1.2b documentation there should be a 
> get_options() 
> >method on the server object.  When trying to access it I get 
> a traceback.
> >
> >code (under psp):
> >
> >req.log_error('options: %s' % `req.server.get_options()`)
> >
> >error:
> >
> >AttributeError: 'mp_server' object has no attribute 'get_options'
> >
> >
> >Does the server.get_options() method no longer exist and is the 
> >documentation (section 4.5.6.1) just out of date?
> >
> >I'm trying to get to the DocumentRoot value for the virtual server 
> >handling the current request and was hoping I might find it in there.
> >
> >-Dan
> >
> >_______________________________________________
> >Mod_python mailing list
> >Mod_python at modpython.org
> >http://mailman.modpython.org/mailman/listinfo/mod_python
> 
> _______________________________________________
> Mod_python mailing list
> Mod_python at modpython.org
> http://mailman.modpython.org/mailman/listinfo/mod_python
> 



More information about the Mod_python mailing list