[Zope] DTML Variable for hostname?

Christian Theune ct@gocept.com
Wed, 6 Mar 2002 21:10:17 +0100


Hi.

Don't have that on top of my head currently. But i can tell
you that you will find it as part of the REQUEST. Exactly of 
REQUEST.env. Which key it exactly represents is written in the CGI-Environment
"Specification". You will find it if you enter Zope-Help on your ZMI, go to
"Zope Help" -> API -> REQUEST -> then look for the link to the CGI Ref.

Greetings, and please, take a deeper look at the help in the ZMI 
it currently really answers most of my questions too.

Christian

On Wed, Mar 06, 2002 at 02:45:24PM -0500, Mark Snellings wrote:
> Within a DTML Method, how do I access the name of the host that the portal
> is running on?
> 
> The URL printed by <dtml-var &dtml-portal_url> includes not only the
> hostname but also the port and top level directory.  Is there a variable for
> accessing just the hostname?
> 
> (hostname maybe localhost, an IP address or a fully qualified DNS registry
> name)
> 
> Thanks
> Mark

-- 
Christian Theune - ct@gocept.com
gocept gmbh & co.kg - schalaunische strasse 6 - 06366 koethen/anhalt
tel.+49 3496 3099112 - fax.+49 3496 3099118 mob. - 0178 48 33 981

reduce(lambda x,y:x+y,[chr(ord(x)^42) for x in 'zS^BED\nX_FOY\x0b'])