Updated: (MODPYTHON-55) Add a version attribute to the mod_python module.
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 > Updated: (MODPYTHON-55) Add a version attribute to the mod_python module.




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

    Updated: (MODPYTHON-55) Add a version attribute to the mod_python module.  
Jim Gallacher (JIRA)


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


 
05-31-05 10:47 PM

[ http://issues.apache.org/jira/brows...HON-55?page=all ]

Jim Gallacher updated MODPYTHON-55:
-----------------------------------

Attachment: serverobject.c-jg20050531-1.diff

On further consideration, lets bypass the whole config issue and add a metho
d to serverobject.c:

static PyObject * server_get_mp_version(serverobject *self)
{
PyObject *version;
version = PyString_FromString(MPV_STRING);
if (!version)
return NULL;

Py_INCREF(version);
return version;

}

Usage: req.server.get_mp_version()

> Add a version attribute to the mod_python module.
> -------------------------------------------------
>
>          Key: MODPYTHON-55
>          URL: http://issues.apache.org/jira/browse/MODPYTHON-55
>      Project: mod_python
>         Type: Improvement
>     Versions: 3.1.4
>     Reporter: Nicolas Lehuen
>     Assignee: Nicolas Lehuen
>      Fix For: 3.2.0
>  Attachments: serverobject.c-jg20050531-1.diff
>
> (asked by dharana) There is no easy way to know the version of mod_python used fro
m within an handler. Why not try to add a version string attribute to the mod_python
 module ?






[ Post a follow-up to this message ]



    Sponsored Links  




 





   All times are GMT. The time now is 09:46 PM.      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