Hmm. I admit I made a few assumptions based on the incident I experienced 
and how I saw things done in a couple examples in the book. To be precise, 
I created a form using the FORM function, where one field was meant to be 
used as a date (had a requires=is_date() on it). I then passed the 
submitted info to put stuff into my database, passing in the date as a 
string into the insert() function. I'm pretty certain that when I did this, 
it was a valid date. However, this caused an exception to be raised any 
time a query was made to fetch this record (consequently, also when 
fetching all records from the table). It said something like "day is out of 
range for this month". So after I manually deleted the record, I changed my 
code to manually parse the date and create a datetime.date object to pass 
into the insert() function. After that, I haven't had any problems.

I'll see if some time in the near future I can duplicate the error to 
determine if it was something I did wrong or if there is something that 
could use some tweaking with web2py.

-- 

--- 
You received this message because you are subscribed to the Google Groups 
"web2py-users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
For more options, visit https://groups.google.com/groups/opt_out.


Reply via email to