[web2py] Re: onaccept in auth.login using 3rd party logins?

2011-02-18 Thread firedragon852
Thanks. http://code.google.com/p/web2py/issues/detail?id=196 On Feb 18, 12:32 pm, Massimo Di Pierro massimo.dipie...@gmail.com wrote: This is a bug, please open an issue on google code and I will try fix it during the week-end. On Feb 17, 5:10 pm, firedragon852 firedragon...@gmail.com wrote

[web2py] onaccept in auth.login using 3rd party logins?

2011-02-17 Thread firedragon852
I am using oauth20_account and oauth10a_account as well as the regular form login authentication. I want to be able to execute a method after the user logs in. For the regular form login authentication, return dict(form=auth.login(onaccept=execute_me_after_login)) executes

[web2py] facebook and auth logins

2010-10-11 Thread firedragon852
Hi, I have the following code: def login(): ... if request.args(0) == 'facebook': from gluon.contrib.login_methods.oauth20_account import OAuthAccount auth.settings.login_form = FacebookAccount(globals()) return dict(form=auth.login()) When I go to the url

[web2py] Re: Facebook/Twitter/Google login + normal login

2010-10-11 Thread firedragon852
I tried both the following methods: URL: .../login/facebook if request.args(0) == 'facebook': from gluon.contrib.login_methods.oauth20_account import OAuthAccount auth.settings.login_form = FacebookAccount(globals()) can get redirected to facebook login page, but when it comes

[web2py] Re: facebook and auth logins

2010-10-11 Thread firedragon852
()) On Oct 12, 7:47 am, firedragon852 firedragon...@gmail.com wrote: If I remove: if request.args(0) == 'facebook': from the controller method, I can get authenticated by facebook and get redirected to the auth.settings.login_next URL. It seems that this is an all-or-nothing login mechanism

[web2py] headers and fields in crud.select under GAE

2010-10-05 Thread firedragon852
I have the following query: records = crud.select(db.myobj, db.myobj.owner == auth.user.id, fields=['myobj.owner', 'myobj.createdAt', 'myobj.name', 'myobj.type', 'myobj.id', 'myobj.image'], headers={'myobj.owner':T('Person'), 'myobj.createdAt':T('Date'), 'myobj.name':T('Name'),

[web2py] DAL belongs in GAE

2010-10-04 Thread firedragon852
On GAE, this doesn't work: rows = db((db.geoip.begin_num = value) (db.geoip.end_num = value)).select() BadFilterError: BadFilterError: invalid filter: Only one property per query may have inequality filters (=, =, , ).. So I broke the query into two queries: ids = db(db.geoip.begin_num =

[web2py] represent in crud.select

2010-08-25 Thread firedragon852
If I do this: db.friendship.to_user.represent = lambda id: db.auth_user[id].nickname friends = crud.select(db.friendship, db.friendship.from_user == auth.user.id, fields=['id', 'to_user'], headers={'id':T('ID'), 'to_user':T('Friend')})

[web2py] Re: development mode for web2py?

2010-08-16 Thread firedragon852
it helps, Mart :) On Aug 15, 9:58 am, DenesL denes1...@yahoo.ca wrote: Hi firedragon852, On Aug 14, 9:02 pm, firedragon852 firedragon...@gmail.com wrote: I am doing development under windows so I am running the binary version of web2py for windows. It seems that whenever

[web2py] development mode for web2py?

2010-08-15 Thread firedragon852
I am doing development under windows so I am running the binary version of web2py for windows. It seems that whenever I change my code I need to clean/compile via the admin interface for the changes to be effective. Is there a way to turn this off? During development I want to be able to make