On 1/23/07, Peter Bengtsson <[EMAIL PROTECTED]> wrote:
This might be an FAQ but I wasn't able to find it when searching.
How do I get access to the value of 'session-timeout-minutes' coming
from etc/zope.conf in runtime Zope?

The trail to figure this out:

- ZCML directives for zope.conf are defined in
Zope2/Startup/zopeschema.xml. It defines a 'session_timeout_minutes'
handler.

- Handlers are defined in Zope2/Startup/handlers.py;
session_timeout_minutes sets the defined value as a environment
variable: ZSESSION_TIMEOUT_MINS

Presumably you can read out this var from os.environ for your own
purposes; note however that I have found no mention of the ZSESSION_
variables outside of handlers.py, they appear to be otherwise unused.

--
Martijn Pieters
_______________________________________________
Zope maillist  -  Zope@zope.org
http://mail.zope.org/mailman/listinfo/zope
**   No cross posts or HTML encoding!  **
(Related lists - http://mail.zope.org/mailman/listinfo/zope-announce
http://mail.zope.org/mailman/listinfo/zope-dev )

Reply via email to