Re: [web2py] Facebook OAuth - newbie question

2016-03-21 Thread kedai
Sorry to bring this up again, but am having the same problem. accessToken() returns None Could you elaborate what you did to get it working? putting what code , where? thanks On Friday, August 8, 2014 at 11:24:11 AM UTC+8, lyn2py wrote: > > Ok, I have figured out why it didn't work for me. >

[web2py] Oauth2 with gigya - accesstoken always is none

2016-03-15 Thread kedai
hi trying to use gigya for logging in when i clicked log in or go to http://my.host/user/login?_next=/ i will be redirected to twitter/fb/etc to log in, and will be redirected back to my redirect_uri. redirect_uri will have code appended to it (redirect_uri.mydomain/?code=blabla) but i am

[web2py] Re: Putting logic back to controller

2011-04-06 Thread kedai
On Apr 5, 11:40 pm, Ross Peoples ross.peop...@gmail.com wrote: You should really be joining the queries: records = db(db.person.id==db.cats.owner).select(db.cats.ALL, db.person.ALL) Then in your view, you access this by using: {{for record in records:}}     b{{=record.person.name}}/b:

[web2py] Putting logic back to controller

2011-04-05 Thread kedai
Hi I'm enjoying my dive with web2py. I would like to seek help/pointers re putting logic back at controller. I have two tables, db.define_table('person', Field('name')) db.define_table('cats', Field('name'), Field('owner', db.person)) I have a controller default/index def index():

[web2py] getting json output with variables/args

2011-03-30 Thread kedai
hey guys. Q: If I have controller/myfunction; I know i can get json by doing this controller/myfunction.json However, I have controller/function/arg; how do I get json output when arg will be determined when we call the function. Thanks for any pointers/help

[web2py] Re: getting json output with variables/args

2011-03-30 Thread kedai
tried that, returned no json. that was my first guess too On Mar 30, 10:43 pm, DenesL denes1...@yahoo.ca wrote: controller/myfunction.json/arg On Mar 30, 10:01 am, kedai bakhtiar.aha...@gmail.com wrote: hey guys. Q: If I have controller/myfunction; I know i can get json by doing

[web2py] Re: getting json output with variables/args

2011-03-30 Thread kedai
On Mar 30, 11:45 pm, Jonathan Lundell jlund...@pobox.com wrote: On Mar 30, 2011, at 8:28 AM, kedai wrote: tried that, returned no json.  that was my first guess too Is the controller getting invoked? What does it do? That ought to work, unless there's a routing problem or the like. I

[web2py] Re: getting json output with variables/args

2011-03-30 Thread kedai
. On Wednesday, March 30, 2011 10:00:05 PM UTC-4, DenesL wrote: You are returning a whole record, which contains un-serializable objects. Try returning specific fields only:   return dict(name=db.table.name, age=db.table.age, ...) On Mar 30, 9:05 pm, kedai bakhtia...@gmail.com