[n.a.s ]
I can't compare a String with a dtml-var variable.
<dtml-if expr="REQUEST.has_key('nol') and nol=='<dtml-var id>'">
Of course you can do a compare, but not with invalid syntax. The <dtml...> tag just sets up the environment for accessing objects, and there is no need to try to stick another <dtml> tag inside one (even if it were allowed). All you need is the obvious - <dtml-if expr="REQUEST.has_key('nol') and nol==id"> Furthermore, Python uses short-circuit evaluation, so the expression will not fail if there is no key for nol - very helpful. Cheers, Tom P
Passin, Tom wrote at 2003-5-13 13:16 -0400:
[n.a.s ]
I can't compare a String with a dtml-var variable.
<dtml-if expr="REQUEST.has_key('nol') and nol=='<dtml-var id>'">
Of course you can do a compare, but not with invalid syntax. The <dtml...> tag just sets up the environment for accessing objects, and there is no need to try to stick another <dtml> tag inside one (even if it were allowed).
All you need is the obvious -
<dtml-if expr="REQUEST.has_key('nol') and nol==id">
Because "id" is sometimes a method and sometimes a string, it is better to use: <dtml-if expr="REQUEST.has_key('nol') and nol==getId()"> Dieter
I was wondering if someone can tell me how I can install PHP on my Zope server. I've got linux Redhat v8.0 installed. Again, I'm a linux nub. Thanks ~John
Hi, On Wed, May 14, 2003 at 02:12:36PM -0600, John wrote:
I was wondering if someone can tell me how I can install PHP on my Zope server. I've got linux Redhat v8.0 installed. Again, I'm a linux nub.
If you use Zope, then you probably don't need PHP, because Zope is much more complete and powerful than PHP. PHP is a language, Zope is an application server. If you want to port some legacy PHP stuff to Zope, then I'd recommend to use ZShellScripts, available under the GNU GPL from : http://www.librelogiciel.com/software/ Which offer PHP support for Zope with semi-transparent access to Zope objects. If you're a newbie at both Zope and PHP, then learn Zope instead of PHP, it's more fun ! bye Jerome Alet
If you really need to run Zope and PHP at the same time, your best bet is to configure Apache to serve both. It's hardly any more difficult that getting PHP set up in the first place. HTH, Dylan
participants (5)
-
Dieter Maurer -
Dylan Reinhardt -
Jerome Alet -
John -
Passin, Tom