Relax..

This

>>> admin.update({"first_name":"System"})  ### wrong

does not mean what you think it does. You should use instead

>>> admin.update_record(first_name="System")  ### right

This

>>> admin.update({"first_name":"System"})  ### wrong

only updates the admin object dictionary, not the data in the
database.

Massimo

On May 21, 9:40 pm, Horst Herb <[email protected]>
wrote:
> For the second time, a web2py app has gone berserk. All of a sudden,
> database writes do not happen any more, no errors, nothing in the
> logs. Regardless whether I use the appadmin interface or my own
> controllers/views or even in the shell.
>
> Example (web2py -S pb -M, no other web2py processes running on this
> comouter, no other processes accessing the SQLite db):
>
>
>
> >>> admin = db.auth_user[1]
> >>> admin.first_name
> 'Administrator'
> >>> admin.update({"first_name":"System"})
> >>> admin.first_name
> 'System'
> >>> db.commit()
> >>> admin.first_name
> 'System'
> >>> admin = db.auth_user[1]
> >>> admin.first_name
> 'Administrator'
>
> What is going on? Neither restarting web2py nor restarting the
> computer makes any difference. I am using SQLite for the db. Worked
> beautifully until a few moments ago, don't recall really changing
> anything in the code. This is the second time it happened (second app
> malfunctioning). Any ideas?
>
> Horst
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"web2py Web Framework" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to 
[email protected]
For more options, visit this group at 
http://groups.google.com/group/web2py?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to