Re: [Zope] checking Zope's version number

2000-09-13 Thread Hung Jung Lu
>Use version_txt: > > from App.version_txt import version_txt > version_string = version_txt() > >In CVS versions of Zope this will return '(unreleased version)' though. > >You could also test for the existence of registerHelp: > > if hasattr(context, 'registerHelp'): > context.registe

Re: [Zope] checking Zope's version number

2000-09-13 Thread Martijn Pieters
On Tue, Sep 12, 2000 at 09:49:46PM -0700, Hung Jung Lu wrote: > Is there a way of detecting Zope's version number? (I know there is an > environment variable REQUEST.environ['SERVER_SOFTWARE'], but is there a > better/standard way of accessing Zope's version number?) > > (I seem to have problem

[Zope] checking Zope's version number

2000-09-12 Thread Hung Jung Lu
Is there a way of detecting Zope's version number? (I know there is an environment variable REQUEST.environ['SERVER_SOFTWARE'], but is there a better/standard way of accessing Zope's version number?) (I seem to have problem using the context.registerHelp() in a product's __init__ method under