[Zope3-Users] how to know which port zope is runnning on?

Stephan Richter srichter at cosmos.phy.tufts.edu
Thu Nov 30 21:16:57 EST 2006


On Thursday 30 November 2006 05:10, Chris Withers wrote:
> Well, I'd be looking to dig into the config info provided by zope.conf.
>
> In Zope 2, this is done with:
>
> from App.config import getConfiguration
> config = getConfiguration()
> config.whatever.etc
>
> ...Zope 3 likely has something similar.

Unfortunately we do not store that. However, as everything else in Zope 3, the 
server setup is just a component. By looking up the "ServerType" you should 
be able to get at it.

Regards,
Stephan
-- 
Stephan Richter
CBU Physics & Chemistry (B.S.) / Tufts Physics (Ph.D. student)
Web2k - Web Software Design, Development and Training


More information about the Zope3-users mailing list