-----Original Message----- From: Tom Deprez [mailto:tom.deprez@village.uunet.be]
If property pDate is of type Date,
then why does this gives an error?
<dtml-call "REQUEST.set('Date', ZopeTime())">
Works for me. What has this got to do with the property 'pDate'? -Michel
Oops, sorry the property is named 'Date' not 'pDate'... <dtml-call "REQUEST.set('Date', ZopeTime())"> Tom. ----- Original Message ----- From: Michel Pelletier <michel@digicool.com> To: 'Tom Deprez' <tom.deprez@village.uunet.be>; <zope@zope.org> Sent: Tuesday, December 21, 1999 7:36 PM Subject: RE: [Zope] Error?
-----Original Message----- From: Tom Deprez [mailto:tom.deprez@village.uunet.be]
If property pDate is of type Date,
then why does this gives an error?
<dtml-call "REQUEST.set('Date', ZopeTime())">
Works for me.
What has this got to do with the property 'pDate'?
-Michel
I think your looking at this from the wrong angle. There is a difference between a variable that lives in the REQUEST space and a property of a DTML Document (or Folder or whatever) If I have a DTML Document with an id of Test and it has a property x of type int then this works. <dtml-call "Test.manage_changeProperties(x=2)"> <dtml-var "Test.x"> Of course your property was a date type, but the same applies. Hope this helps. DR
mmm, I don't know if this will help me. The code I showed is used in a ZClass. ----- Original Message ----- From: Daniel G. Rusch <drusch@globalcrossing.com> To: Tom Deprez <tom.deprez@village.uunet.be> Cc: Michel Pelletier <michel@digicool.com>; <zope@zope.org> Sent: Tuesday, December 21, 1999 9:50 PM Subject: Re: [Zope] Error?
I think your looking at this from the wrong angle. There is a difference between a variable that lives in the REQUEST space and a property of a DTML Document (or Folder or whatever)
If I have a DTML Document with an id of Test and it has a property x of type int then this works.
<dtml-call "Test.manage_changeProperties(x=2)"> <dtml-var "Test.x">
Of course your property was a date type, but the same applies.
Hope this helps.
DR
mmm, I don't know if this will help me. The code I showed, is used in a ZClass. I still get this error of : Invalid Date-Time String How do I have to convert the result of the ZopeTime() function so that it can be placed in a property of type 'Date'? Tom. ----- Original Message ----- From: Daniel G. Rusch <drusch@globalcrossing.com> To: Tom Deprez <tom.deprez@village.uunet.be> Cc: Michel Pelletier <michel@digicool.com>; <zope@zope.org> Sent: Tuesday, December 21, 1999 9:50 PM Subject: Re: [Zope] Error?
I think your looking at this from the wrong angle. There is a difference between a variable that lives in the REQUEST space and a property of a DTML Document (or Folder or whatever)
If I have a DTML Document with an id of Test and it has a property x of type int then this works.
<dtml-call "Test.manage_changeProperties(x=2)"> <dtml-var "Test.x">
Of course your property was a date type, but the same applies.
Hope this helps.
DR
participants (3)
-
Daniel G. Rusch -
Michel Pelletier -
Tom Deprez