Where is exception raised? We can fix it. On Saturday, 9 March 2013 07:48:23 UTC-6, Michele Comitini wrote: > > Leo, > > Good that you found the cause. > I will update the ticket, because SyntaxError is quite misleading. > > If you can follow https://code.google.com/p/web2py/issues/detail?id=1369 > > tnx > mic > > Il giorno sabato 9 marzo 2013 12:54:51 UTC+1, Leo Rocha ha scritto: >> >> 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.

