Mic:

On Fri, Mar 8, 2013 at 9:56 PM, Michele Comitini
<[email protected]> wrote:
> Even if you can modify tools.py, my suggestion is to modify your  db.py
> code.  Remember that you can do many things sub-classing the OAuthAccount
> class!
>

I tried with subclassing again, copied your code and  but no luck at all.
I've checked and finally understood that I had to configure the db.py
differently. The error was not on the FacebookAccount(OAuthAccount)
subclass, but in the auth.settings

All the thing is that I needed to add the following line:

auth.settings.update_fields = ['username','email']

to the settings in the db.py file after the auth instantiation, and
this is doing the correct work.

I might sum up my problemlike this:

When using authentication methods other than the standard, and the
auth_user class is overwritten, a
'exceptions.SyntaxError' No fields to update might arise in the after
first login
error might arise.
In that case,
auth.settings.update_fields = ['username','email']  with the
corresponding fields that must be updated on login


Thanks!


Leo

-- 

--- 
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