[Zope] DateTime under phyton script

Dieter Maurer dieter@handshake.de
Mon, 27 Aug 2001 21:17:26 +0200 (CEST)


Kerekes Lajos writes:
 > I have a form. It contains 3 drop-down boxes, named start_year:int,
 > start_month:int, start_day:int.
 > How can I use them, to make a datum object under phyton script?
 > I try
 > 
 > starttime = DateTime(container.REQUEST.start_year,
 > container.REQUEST.start_month, container.REQUEST.start_day)
This looks good! Should work....

 > but it gives an error
 > 
 > Error Type: TypeError
 > Error Value: illegal argument type for built-in operation
Look at the traceback to learn where the error has been found.


Dieter