Hey all, Does anyone know how to access an environment variable from a Zope site? Thanks, DR
Environment variable in what sense? Do you mean Server Environment or Machine Environment? If Server Environment then something like <dtml-var "REQUEST['varname']">. If Machine Environment then it may be possible to write an external method to get at it, assuming that the user Zope runs as has the envvar in its env. At least that's my take on it. Phil phil.harris@zope.co.uk |>-----Original Message----- |>From: r oot [mailto:root@globalcrossing.com]On Behalf Of Daniel G. Rusch |>Sent: Wednesday, January 19, 2000 2:55 PM |>To: zope@zope.org |>Subject: [Zope] Environment Variable |> |> |>Hey all, |> |>Does anyone know how to access an environment variable from a Zope site? |> |>Thanks, |> |>DR |> |>_______________________________________________ |>Zope maillist - Zope@zope.org |>http://lists.zope.org/mailman/listinfo/zope |>** No cross posts or HTML encoding! ** |>(Related lists - |> http://lists.zope.org/mailman/listinfo/zope-announce |> http://lists.zope.org/mailman/listinfo/zope-dev ) |>
Hey all, I'm strecthing my area of expertise here, but I had our sys admin set an Environment Variable in etc/profile and a different Environment Variable in Apache. I don't seem to be able to access either. I've tried <dtml-var "REQUEST['varname']">, but that throws an KeyError. Any thoughts. DR
participants (2)
-
Daniel G. Rusch -
Phil Harris