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
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
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
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 <=
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
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
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
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
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
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(
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
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.
>
>
12 matches
Mail list logo