[Zope] Re: Detect ZOPE version inside a product

Josef Meile josef.meile@imes.mavt.ethz.ch
Fri, 06 Dec 2002 10:02:48 +0100


Hi,

> How could I detect the running Zope version inside a product?
There is a varible in the REQUEST object: SERVER_SOFTWARE. In
my case it is:

"Zope/(Zope 2.5.1 (binary release, python 2.1, linux2-x86), python 2.1.3, linux2) ZServer/1.1b1"

You have to do some strings operations in order to get it.

Regards,
Josef.