-----BEGIN PGP SIGNED MESSAGE-----
Miles Waller wrote:
> I am trying to find out the port number for the HTTP service running in
> a zope instance. I tried using socket_map as used in the Control_Panel
> interface to report on running network services, but abandoned this
> because I need to get the same information when running in a debug
> instance as through the web.
I don't know what you mean by "debug isntance": is that from within the
process started by 'zopectl debug'? from a script run via 'zopectl run'?
> My next approach uses App.config.getConfiguration().servers to get the
> information fromn zope.conf directly. But a few things seem not quite
> - getConfiguration().servers gives me different lists through the debug
> prompt and through the web. why is this?
> - what is the most robust way to determine which of the listed servers
> is the HTTPServer?
Use 'isinstance HTTPServer'.
> - is it ever possible that the servers list would contain more than one
Yes. There will be one instance per '<http-server>' directive in your
> The reason for doing this is so that zope can call out to an external
> program, and give it a notification url that the external program can
> call back on. Unfortunately I can't change this method of integration.
> Thanks for your help!
Rather than guess, I would make the "callback URL" an explicit
configuration item. You could set an environment variable with the
information you need, or add a custom stanza to zope.conf, e.g.::
You would then use this value via
See the bottom of $ZOPE_HOME/skel/etc/zope.conf.in for more information.
Tres Seaver +1 202-558-7113 [EMAIL PROTECTED]
Palladion Software "Excellence by Design" http://palladion.com
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v18.104.22.168 (GNU/Linux)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org
-----END PGP SIGNATURE-----
Zope-Dev maillist - Zope-Dev@zope.org
** No cross posts or HTML encoding! **
(Related lists -