Re: Add Property to DTML Documents
Hi Steve, this works on my box: <dtml-call "manage_addProperty('myDate', ZopeTime(), 'date')">. Maybe the problem is that you're passing a string instead of a date value. You can try using DateTime() to convert your date string to a date object. Eg.: <dtml-call "manage_addProperty('myDate', _.DateTime('1999/12/03'), 'date')"> HTH. Alexandre At 22:25 02/12/1999 -0800, you wrote:
Date: Thu, 2 Dec 1999 12:54:10 -0800 (PST) From: Steve Rauch <srauch@u.washington.edu> To: zope@zope.org Subject: [Zope] Add Property to DTML Documents <snip>
When I replace the <dtml-var hbdate> with:
<dtml-call "manage_addProperty('date', hbdate, 'date')">
I get following Zope Error:
Error Type: Invalid Date-Time String Error Value:
In viewing the source of Zope frame I can see the values for the files, but I also see a blank double space before the first value as if the external method is evaluating some extra document that does not produce a value.
What have I done wrong?
Steve Rauch srauch@u.wahington.edu
participants (1)
-
Alexandre Ratti