[web2py] Re: weird database behavior

2011-12-15 Thread Cliff
After the user registers, you should probably redirect him to a login page that politely says something like: Thank you for registering. Log in now to get access to the all the features of our fantastic site. On Dec 14, 11:37 pm, Anthony abasta...@gmail.com wrote: On Wednesday, December 14,

[web2py] Re: weird database behavior

2011-12-15 Thread Nik Go
Isn't that the default behavior? I mean, after registration a user is automatically logged in. Anyway, what I did was when a currently logged-in and unverified user's account is verified or updated by the admin, his status will be updated when he checks his profile (or logs out and logs in

[web2py] Re: weird database behavior

2011-12-14 Thread Nik Go
I finally wrapped my head around this. (Yay!) My custom auth_user field account_status is set by default to unverified until an administrator verifies the account. If the user is logged-in while the admin makes the update, the session cached value will remain unverified until the user logs off,

[web2py] Re: weird database behavior

2011-12-14 Thread Nik Go
I finally wrapped my head around this. (Yay!) My custom auth_user field account_status is set by default to unverified until an administrator verifies the account. If the user is logged-in while the admin makes the update, the session cached value will remain unverified until the user logs off,

[web2py] Re: weird database behavior

2011-12-14 Thread Anthony
In my design case registration doesn't require approval, but access to most features are disabled until approved. I suppose, had I realized this, my question should be, and is now:* is there a way to update a currently logged-in user's status to reflect the latest value in the db other

[web2py] Re: weird database behavior

2011-12-14 Thread Nik Go
hmm ... I tried auth.user.account_status=db.auth_user[auth.user.id ].account_status , but I get an error: AttributeError: 'NoneType' object has no attribute 'account_status' On Wednesday, December 14, 2011, Anthony wrote: In my design case registration doesn't require approval, but access to

[web2py] Re: weird database behavior

2011-12-14 Thread Anthony
On Wednesday, December 14, 2011 11:24:20 PM UTC-5, ニコノコ wrote: hmm ... I tried auth.user.account_status=db.auth_user[auth.user.id ].account_status , but I get an error: AttributeError: 'NoneType' object has no attribute 'account_status' It will only work when there is actually a logged in

[web2py] Re: weird database behavior

2011-12-12 Thread Nik Go
I'm still stuck with this :( I've already deleted my database to start from scratch but I am encountering the same issue. For example, i deleted a record from auth_account (in this case record #3) but when the I run the app and run a trace with ipdb, my functions still return a row id 3, as if it

[web2py] Re: weird database behavior

2011-12-11 Thread Nik Go
And the other fields are still set to none, while their true values are otherwise. On Monday, December 12, 2011, Nik Go wrote: Here's a screenshot. Noticed that i edited the name toGJonathan but the response.flash retrieves it as Jonathan On Monday, December 12, 2011, Nik Go wrote: I

[web2py] Re: weird database behavior

2011-12-11 Thread Anthony
Can you show some code? What do you mean check the data from a view? On Sunday, December 11, 2011 8:43:50 PM UTC-5, ニコノコ wrote: I have a custom auth_user field that I could edit from admin (and I can verify that changes are actually written in the sqlite table) but every time I check the

[web2py] Re: weird database behavior

2011-12-11 Thread ニコノコ
I meant, if the data is accessed from a function. On Dec 12, 12:07 pm, Anthony abasta...@gmail.com wrote: Can you show some code? What do you mean check the data from a view? On Sunday, December 11, 2011 8:43:50 PM UTC-5, ニコノコ wrote: I have a custom auth_user field that I could edit

[web2py] Re: weird database behavior

2011-12-11 Thread Anthony
Yes, but exactly how are you accessing it? Show your model code, how you are updating the data, and how you are then querying and displaying it. On Sunday, December 11, 2011 11:23:39 PM UTC-5, ニコノコ wrote: I meant, if the data is accessed from a function. On Dec 12, 12:07 pm, Anthony