Created: (MODPYTHON-144) Make
Web Server forum
Back To The Forum Home!Search!Private Messaging System

Web Server Talk Web Server Talk > Web Servers reviews > Apache Server configuration support > Apache Mod-Python > Created: (MODPYTHON-144) Make




  Last Thread   Next Thread Next
  Show Printable Version Email this Page Subscribe to this Thread      Post New Thread    Post A Reply      

    Created: (MODPYTHON-144) Make  
Graham Dumpleton (JIRA)


View Ip Address Report This Message To A Moderator Edit/Delete Message


 
03-11-06 01:45 AM

Make apache._server/apace._interpreter part of public API.
----------------------------------------------------------

Key: MODPYTHON-144
URL: http://issues.apache.org/jira/browse/MODPYTHON-144
Project: mod_python
Type: Improvement
Components: core
Reporter: Graham Dumpleton
Assigned to: Graham Dumpleton


Within the mod_python.apache module there exists two private variables calle
d "_server" and "_interpreter". These are initialised when an interpreter is
 first created. The variables are set to be an instance of the mod_python "s
erverobject" and the name o
f the interpreter. In effect, these would be the same as are available to a 
request handler as "req.server" and "req.interpreter".

The problem with those in the "req" object is that they are only available t
o the request handler. If these variables in the "mod_python.apache" module 
are made part of the public API, they would then be accessible by any code. 
Since "server.get_options()
" now exists and "server.get_config()" works properly, making these public w
ould allow code running at global scope when a module is being imported to c
onsult the server level config and/or options to customise their runtime beh
avour.

Thus, proposed that these variables be renamed to "apache.server" and "apach
e.interpreter".










[ Post a follow-up to this message ]



    Sponsored Links  




 





   All times are GMT. The time now is 05:50 AM.      Post New Thread    Post A Reply      
  Last Thread   Next Thread Next


Most Popular forums 

Forum Jump:
Rate This Thread:

Forum Rules:
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts
HTML code is OFF
vB code is ON
Smilies are ON
[IMG] code is OFF
 
Medical and Health forum | Computer Games Reviews | Graphics design forum

Back To The Top
Home | Usercp | Faq | Register