def as_list(self,
                compact=True,
                storage_to_dict=True,
                datetime_to_str=True):

so you can prevent the conversion by providing the datetime_to_str = False

On Sat, Jun 13, 2009 at 5:57 PM, weheh<richard_gor...@verizon.net> wrote:
>
> Massimo, this is great and it works. Thank you. However, caveat emptor
> to others who follow this thread. The as_list() function turns
> datetime fields into strings, so you may have to convert them back to
> datetimes. It feels a little kludgey, but it does work.
>
> On Jun 12, 11:42 pm, mdipierro <mdipie...@cs.depaul.edu> wrote:
>> No it does not work.
>>
>> You have to do:
>>
>> x=x.as_list()
>> for y in x:
>>     y['field']='value'
>>
>> You cannot modify records in a SQLRows object because they are
>> computed when requested. This will change in the new DAL.
>>
>> Massimo
>>
>> On Jun 12, 10:30 pm, weheh <richard_gor...@verizon.net> wrote:
>>
>>
>>
>> > DenesL: I tried exactly that, but somehow, it didn't seem to work.
>> > I'll try again. Thanks for your response!
>>
>> > On Jun 12, 4:54 pm, DenesL <denes1...@yahoo.ca> wrote:
>>
>> > > y['field1'] = 'new name'- Hide quoted text -
>>
>> - Show quoted text -
> >
>

--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"web2py Web Framework" group.
To post to this group, send email to web2py@googlegroups.com
To unsubscribe from this group, send email to 
web2py+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/web2py?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to