[web2py] development mode for web2py?

2010-08-14 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 ch

[web2py] Re: development mode for web2py?

2010-08-16 Thread firedragon852
this is in fact the case, python.org does have a good section on > > modules > > >http://docs.python.org/release/2.2.3/tut/node8.html#SECTION008410... > > > Hope it helps, > > > Mart :) > > > On Aug 15, 9:58 am, DenesL wrote: > > > > Hi firedra

[web2py] represent in crud.select

2010-08-24 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')}) to_user.re

[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] 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'), 'myobj.type':T('Type

[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 .../login/fa

[web2py] Re: facebook and auth logins

2010-10-11 Thread firedragon852
ethod. Is this correct? On Oct 11, 8:49 pm, firedragon852 wrote: > Hi, I have the following code: > > def login(): >     ... >     if request.args(0) == 'facebook': >         from gluon.contrib.login_methods.oauth20_account import > OAuthAccount >         auth.s

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

[web2py] Re: facebook and auth logins

2010-10-11 Thread firedragon852
here is a facebook cookie, use the login_form for FacebookAccount ... return dict(form=auth.login()) On Oct 12, 7:47 am, firedragon852 wrote: > If I remove: > if request.args(0) == 'facebook': > > from the controller method, I can get authenticated by facebook and > ge

[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 execute_me_after_login(

[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 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 wrote: > > > > > > &g

[web2py] Re: Upload file default

2011-02-24 Thread firedragon852
I find that if I use default = 'xxx.jpg' and the form input is left empty, the field will have a length of 0 (not null) instead of the defined default value. Is this a bug? On Feb 8, 4:51 pm, Bernardo Botella Corbí wrote: > Hi Massimo, > > I'm trying it, but maybe I am doing something wrong. > >