Hi, Why does this works : <dtml-call "REQUEST.set('varDate',_.DateTime(name))"> <dtml-var varDate fmt="%d %b %Y"> and this doesn't? <dtml-var _.DateTime(name) fmt="%d %b %Y"> Thanks in advance, Tom
<dtml-var _.DateTime(name) fmt="%d %b %Y"> Tom,
you call the function _.DateTime(name). Therefore you have to put this statement in quotes ( " " ) in order to make it work. The quotes basically mean: eval the expression inside the quotes and return the result to be displayed. Correct: <dtml-var "_.DateTime(name)" fmt="%d %b %Y"> In the previous example you said that varDate ( variable that does not need to be evaluated) is displayed. PS: I like the work that is going on ZDP. :) I will hopefully do some again as well. Regards, Stephan -- Stephan Richter iXL - Software Designer and Engineer CBU - Physics, Computer Science and Chemistry Student
Hi Stephan, Thanks! I tried already other things e.g.<dtml-var "_.DateTime(name) fmt="%d %b %Y""> (but this one is even not accepted in design mode), but never the one you show (dumb). ZDP, yes we're really on the move now. I hope that you again find some time to join us. We hope to release the new ZDP site soon. We only need some time to clean things up and change some text. I also hope we get some visitors and readers and writers... Regards, Tom. ----- Original Message ----- From: Stephan Richter <srichter@cbu.edu> To: Tom Deprez <tom.deprez@village.uunet.be> Cc: <zope@zope.org> Sent: Sunday, January 16, 2000 9:52 AM Subject: Re: [Zope] Why?
<dtml-var _.DateTime(name) fmt="%d %b %Y"> Tom,
you call the function _.DateTime(name). Therefore you have to put this statement in quotes ( " " ) in order to make it work. The quotes basically mean: eval the expression inside the quotes and return the result to be displayed. Correct: <dtml-var "_.DateTime(name)" fmt="%d %b %Y"> In the previous example you said that varDate ( variable that does not need to be evaluated) is displayed.
PS: I like the work that is going on ZDP. :) I will hopefully do some again as well.
Regards, Stephan -- Stephan Richter iXL - Software Designer and Engineer CBU - Physics, Computer Science and Chemistry Student
participants (2)
-
Stephan Richter -
Tom Deprez