Re: [Zope] Error Value: not all arguments converted
Thanks !! you all !!! Problem solved the problem was that Arrival and Departure are strings. I also trayed passing the string like this #dd/mm/yy# to the data base and worked. Thanks !!!
From: Dieter Maurer <dieter@handshake.de> To: "Alexander Alvarado" <funalito@hotmail.com> CC: zope@zope.org Subject: Re: [Zope] Error Value: not all arguments converted Date: Wed, 10 Sep 2003 22:41:49 +0200
Alexander Alvarado wrote at 2003-9-9 23:52 +0000:
I'm traying to convert variables that I recieve from a JavaScript tu ISO date format using:
<dtml-var Arrival fmt=ISO> <dtml-var Departure fmt=ISO>
Almost surely, "Arrival" and "Departure" are strings and not "DateTime" objects. Unlike "DateTime" objects, strings do not have an "ISO" method. Therefore, "ISO" is interpreted as a (C) format string. As it does not contain format specifiers ("%spec"), it is unable to convert the argument.
You find details about the "fmt" attribute in
<http://www.dieter.handshake.de/pyprojects/zope/book/chap3.html>
Your problem will go away when "Arrival" (and friends) are "DateTime" objects. Depending on their format, you may be able to use:
<dtml-var expr="ZopeTime(Arrival)" fmt=ISO>
Dieter
_________________________________________________________________ Charla con tus amigos en lĂnea mediante MSN Messenger: http://messenger.yupimsn.com/
participants (1)
-
Alexander Alvarado