Constructing of a URL for location redirect.

2006-02-16 Thread Graham Dumpleton
Just sending this while I remember ... A while back there was long discussion on constructing a URL for location redirect. While digging through Apache stuff, I stumbled across the function: ap_construct_url() This takes an absolute path and constructs a full URL based on information

Re: Constructing of a URL for location redirect.

2006-02-16 Thread Nicolas Lehuen
It looks good, which proves the power of RTFM. We should test it, of course, to make sure subtleties like virtual host are taken into account (the doc says so but the code knows better). BTW, did we ever considered using SWIG to map the Apache API ? I know it can be quite tricky to use, but it cou

Re: mutex dir?

2006-02-16 Thread Jim Gallacher
Oden Eriksson wrote: tisdagen den 14 februari 2006 13.17 skrev Oden Eriksson: Hello. [...] I am no programmer, but can't you just look at how this is handled in the core mod_ssl and ldap code? That would be cheating and no fun at all! ;) Seriously though, we do often look through the so

Re: Constructing of a URL for location redirect.

2006-02-16 Thread Nick
Nicolas Lehuen wrote: > BTW, did we ever considered using SWIG to map the Apache API ? I know > it can be quite tricky to use, but it could be a real time saver. That's essentially what mod_snake did, and why I liked it so much. Though I don't remember if it used swig or pyrex. Nick

Re: Constructing of a URL for location redirect.

2006-02-16 Thread Gregory (Grisha) Trubetskoy
On Thu, 16 Feb 2006, Nick wrote: Nicolas Lehuen wrote: BTW, did we ever considered using SWIG to map the Apache API ? I know it can be quite tricky to use, but it could be a real time saver. That's essentially what mod_snake did, and why I liked it so much. Though I don't remember if it used

Re: Constructing of a URL for location redirect.

2006-02-16 Thread Nick
Gregory (Grisha) Trubetskoy wrote: > SWIG in my opinion is good when you want some kind of an API made > available to you quickly, but in a static environment where can put some > thought into functionality, usability, Pythonic-ness of every approach, > write documentation with good examples and a

Re: mutex dir?

2006-02-16 Thread Jim Gallacher
Graham Dumpleton wrote: Graham Dumpleton wrote .. Graham Dumpleton wrote .. How does req.server.get_options() differ from req.server.get_config(), which already exists? I still see what is in get_config() as special, ie., the values for actual directives. Just don't think it is good to mix

[jira] Commented: (MODPYTHON-94) Calling APR optional functions provided by mod_ssl

2006-02-16 Thread Graham Dumpleton (JIRA)
[ http://issues.apache.org/jira/browse/MODPYTHON-94?page=comments#action_12366727 ] Graham Dumpleton commented on MODPYTHON-94: --- The attached patch uses Python native bool type. +is_https = optfn_is_https && optfn_is_https(self->request_rec->

[jira] Created: (MODPYTHON-131) Make name of mutex directory configurable.

2006-02-16 Thread Graham Dumpleton (JIRA)
Make name of mutex directory configurable. -- Key: MODPYTHON-131 URL: http://issues.apache.org/jira/browse/MODPYTHON-131 Project: mod_python Type: Improvement Components: core Versions: 3.2 Reporter: Graham Dump

[jira] Created: (MODPYTHON-132) Expose ap_construct_url() in request object.

2006-02-16 Thread Graham Dumpleton (JIRA)
Expose ap_construct_url() in request object. Key: MODPYTHON-132 URL: http://issues.apache.org/jira/browse/MODPYTHON-132 Project: mod_python Type: Improvement Components: core Versions: 3.3 Reporter: Graham

Python 2.x; what's x?

2006-02-16 Thread Daniel J. Popowich
Graham Dumpleton (JIRA) writes: > If mod_python is to still support Python 2.2, which it looks like we > are still because of Nokia work, then can't use the Python bool type > yet as that was only added to Python 2.3. But can't a decision be made? I think deciding by not deciding is less than an

Re: Python 2.x; what's x?

2006-02-16 Thread Graham Dumpleton
Daniel J. Popowich wrote .. > > Graham Dumpleton (JIRA) writes: > > If mod_python is to still support Python 2.2, which it looks like we > > are still because of Nokia work, then can't use the Python bool type > > yet as that was only added to Python 2.3. > > But can't a decision be made? I thin

[jira] Created: (MODPYTHON-134) Setting PythonDebug to Off, doesn't override On setting in parent scope.

2006-02-16 Thread Graham Dumpleton (JIRA)
Setting PythonDebug to Off, doesn't override On setting in parent scope. Key: MODPYTHON-134 URL: http://issues.apache.org/jira/browse/MODPYTHON-134 Project: mod_python Type: Bug Components: co

[jira] Created: (MODPYTHON-135) [SECURITY] A Security Issue with FileSession in 3.2.7

2006-02-16 Thread Graham Dumpleton (JIRA)
[SECURITY] A Security Issue with FileSession in 3.2.7 - Key: MODPYTHON-135 URL: http://issues.apache.org/jira/browse/MODPYTHON-135 Project: mod_python Type: Bug Components: session Versions: 3.2 Repo

Re: mutex dir?

2006-02-16 Thread Graham Dumpleton
On 17/02/2006, at 10:01 AM, Jim Gallacher wrote: The ap_check_cmd_context function may also be of interest. http://docx.webperf.org/group__ap__check__cmd__context.html For example, lets say we wanted to disallow the use of PythonDebug in const char *err; if ((err = ap_check_cmd_con