Issue Details (XML | Word | Printable)

Key: MODPYTHON-137
Type: New Feature New Feature
Status: Closed Closed
Resolution: Fixed
Priority: Major Major
Assignee: Graham Dumpleton
Reporter: Graham Dumpleton
Votes: 0
Watchers: 0
Operations

If you were logged in you would be able to see more operations.
mod_python

Add req.server.get_options() for obtain PythonOption values set at global level.

Created: 19/Feb/06 01:43 PM   Updated: 11/Apr/07 11:31 AM
Return to search
Component/s: core
Affects Version/s: 3.3.x
Fix Version/s: 3.2.10, 3.3.1

Time Tracking:
Not Specified

File Attachments:
  Size
File Licensed for inclusion in ASF works grahamd_20060228_MP137_1.diff 2006-02-28 06:24 PM Graham Dumpleton 7 kB

Resolution Date: 07/Mar/06 09:33 AM


 Description  « Hide
The req.server.get_config() member seems like it is supposed to allow access to values of configuration directives set at global context. It seems though to have a few problems with it though. See MODPYTHON-133 and MODPYTHON-134.

Regardless of that, it seems it may be appropriate to provide an equivalent for PythonOption directive settings. Specifically req.server.get_options(). This would return a table object giving all PythonOption value settings performed at global scope. This would be useful where a value needs to be set globally in one place and not be overridable in more constrained configuration containers.

This might for example be used as a way or allowing the mutex directory to be specified in the Apache configuration as well as as a "configure" command line option. See MODPYTHON-131.

See commentary along with some patches in:

  http://www.mail-archive.com/python-dev@httpd.apache.org/msg01295.html



 All   Comments   Work Log   Change History   Subversion Commits      Sort Order: Ascending order - Click to sort in descending order
Graham Dumpleton made changes - 26/Feb/06 02:13 PM
Field Original Value New Value
Assignee Graham Dumpleton [ grahamd ]
Graham Dumpleton made changes - 27/Feb/06 02:45 PM
Status Open [ 1 ] In Progress [ 3 ]
Graham Dumpleton made changes - 27/Feb/06 02:46 PM
Fix Version/s 3.3 [ 12310101 ]
Graham Dumpleton added a comment - 28/Feb/06 06:24 PM
Attached "grahamd_20060228_MP137_1.diff" containing proposed changes.

Graham Dumpleton made changes - 28/Feb/06 06:24 PM
Attachment grahamd_20060228_MP137_1.diff [ 12323491 ]
Repository Revision Date User Message
ASF #383262 Sun Mar 05 01:15:01 UTC 2006 grahamd Added new req.server.get_options() method. (MODPYTHON-137)
Files Changed
MODIFY /httpd/mod_python/trunk/test/htdocs/tests.py
MODIFY /httpd/mod_python/trunk/src/serverobject.c
MODIFY /httpd/mod_python/trunk/Doc/modpython4.tex
MODIFY /httpd/mod_python/trunk/test/test.py
MODIFY /httpd/mod_python/trunk/src/mod_python.c
MODIFY /httpd/mod_python/trunk/lib/python/mod_python/testhandler.py
MODIFY /httpd/mod_python/trunk/Doc/appendixc.tex

Graham Dumpleton made changes - 07/Mar/06 09:33 AM
Status In Progress [ 3 ] Resolved [ 5 ]
Resolution Fixed [ 1 ]
Repository Revision Date User Message
ASF #393438 Wed Apr 12 11:16:42 UTC 2006 grahamd Backported MODPYTHON-137 from trunk to branches/3.2.x.
Files Changed
MODIFY /httpd/mod_python/branches/3.2.x/test/test.py
MODIFY /httpd/mod_python/branches/3.2.x/src/mod_python.c
MODIFY /httpd/mod_python/branches/3.2.x/Doc/appendixc.tex
MODIFY /httpd/mod_python/branches/3.2.x/lib/python/mod_python/testhandler.py
MODIFY /httpd/mod_python/branches/3.2.x/test/htdocs/tests.py
MODIFY /httpd/mod_python/branches/3.2.x/src/serverobject.c
MODIFY /httpd/mod_python/branches/3.2.x/Doc/modpython4.tex

Graham Dumpleton made changes - 12/Aug/06 07:55 AM
Fix Version/s 3.2.10 [ 12312029 ]
Graham Dumpleton made changes - 11/Apr/07 11:31 AM
Status Resolved [ 5 ] Closed [ 6 ]