Hi

Tried using the instructions from 
http://www.web2py.com/books/default/chapter/29/14#Dropbox-API

The typo there has not been fixed yet; 

use_janrain(auth,filename='private/dropbox.key') should be 
use_dropbox(auth,filename='private/dropbox.key')

But anyways, I got it working, but now when I try using it, I just get this 
error:

<type 'exceptions.TypeError'> 'NoneType' object is unsubscriptable Version  
web2py™ Version 2.4.7-stable+timestamp.2013.05.24.17.48.47  Python Python 
2.6.5: /usr/bin/python (prefix: /usr)  Traceback 

1.
2.
3.
4.
5.
6.
7.
8.
9.
10.
11.
12.
13.
14.

Traceback (most recent call last):
  File "/home/www-data/web2py/gluon/restricted.py", line 212, in restricted
    exec ccode in environment
  File "/home/www-data/web2py/applications/init/controllers/default.py" 
<https://dominochinese.com/admin/default/edit/init/controllers/default.py>, 
line 267, in <module>
  File "/home/www-data/web2py/gluon/globals.py", line 194, in <lambda>
    self._caller = lambda f: f()
  File "/home/www-data/web2py/applications/init/controllers/default.py" 
<https://dominochinese.com/admin/default/edit/init/controllers/default.py>, 
line 36, in get_dropbox_file
    stream = mydropbox.get('localfile.txt')
  File "/home/www-data/web2py/gluon/contrib/login_methods/dropbox_account.py", 
line 111, in get
    if not hasattr(self,'client'): self.get_client()
  File "/home/www-data/web2py/gluon/contrib/login_methods/dropbox_account.py", 
line 103, in get_client
    self.sess.set_token(access_token[0], access_token[1])
TypeError: 'NoneType' object is unsubscriptable


The thing is I have a file called localfile.txt in the folder i am trying to 
access. Any ideas what I am doing wrong?

Cheers

-- 

--- 
You received this message because you are subscribed to the Google Groups 
"web2py-users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to web2py+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.


Reply via email to