[web2py] Re: dropbox python api

2012-09-10 Thread peter
Problem sorted by Massimo in under 12 hours. Amazing responsiveness Peter --

[web2py] Re: dropbox python api

2012-09-10 Thread Massimo Di Pierro
Please open a ticket on googlecode. On Monday, 10 September 2012 07:31:04 UTC-5, peter wrote: > > Massimo I am testing this > > def test_dropbox(): > from dropbox_account import DropboxAccount > dropbox=DropboxAccount(request,key="XXX",secret="XXX") > dropbox.login_form() >

[web2py] Re: dropbox python api

2012-09-10 Thread peter
Massimo I am testing this def test_dropbox(): from dropbox_account import DropboxAccount dropbox=DropboxAccount(request,key="XXX",secret="XXX") dropbox.login_form() return dict() I tried the above I get TRACEBACK 1. 2. 3. 4. 5. 6. 7. 8. 9. Traceback (most recent call l

[web2py] Re: dropbox python api

2012-09-10 Thread peter
Joseph your code for dropbox is no longer there. Is there any chance of you putting it up again? Thanks Peter On Thursday, 5 January 2012 17:28:41 UTC, Joseph Jude wrote: > > If anyone is interested, you can look into the code for dropbox connection > here: > > http://goo.gl/QYT2y > > This is my

[web2py] Re: dropbox python api

2012-04-09 Thread Massimo Di Pierro
Perhaps this can be useful: https://github.com/web2py/web2py/blob/master/gluon/contrib/login_methods/dropbox_account.py#L90 has been there for a while but I am not sure anybody has tested it very well. massimo On Monday, 9 April 2012 09:14:56 UTC-5, Paul Gerrard wrote: > > Hi, > > I got distrac

[web2py] Re: dropbox python api

2012-04-09 Thread Paul Gerrard
Hi, I got distracted by other things and only just came back to this. The problem I was having was in my code was the token was 'disabled or invalid'. I'm sure this is resolved by using the callback in the redirect back from the Dropbox site. I commented out the code that's not relevant for me

[web2py] Re: dropbox python api

2012-01-05 Thread Joseph Jude
If anyone is interested, you can look into the code for dropbox connection here: http://goo.gl/QYT2y This is my default.py. Look at dropbox_connect and process_dropbox. Question: How can I automate this with cron? When I do it, it stops with the redirect. Thank you, Joseph

[web2py] Re: dropbox python api

2012-01-04 Thread Joseph Jude
Paul, What kind of error are you getting? I'm also starting to play with dropbox. Got two functions in default controller (one is a callback function) but it works. BTW, I'm storing the dropbox session as current.session.dsession Joseph http://www.jjude.biz

[web2py] Re: dropbox python api

2012-01-04 Thread Paul Gerrard
I just started looking at Dropbox yesterday. I've created some code that works in the python interpreter just fine, but when I paste to a web2py controller it fails. I suspect it's because the Dropbox module uses a variable calls 'session' that actually uses the Web2py session variable. Is there a

[web2py] Re: dropbox python api

2012-01-02 Thread Massimo Di Pierro
Only dropbox On Jan 2, 7:38 pm, Joseph Jude wrote: > To use this do you need APIs both from dropbox & janrain? > > Thank you, > Joseph

[web2py] Re: dropbox python api

2012-01-02 Thread Joseph Jude
To use this do you need APIs both from dropbox & janrain? Thank you, Joseph

[web2py] Re: dropbox python api

2011-11-13 Thread Massimo Di Pierro
I added some dropbox support (needs improvement) in your model from gluon.contrib.login_methods.dropbox_account import use_dropbox use_dropbox(auth,filename='private/dropbox.key') and private/dropbox.key shoud contain: "key:secret:access_type" After connection the client object is in auth.setti