I tried the example in the book in 2.1.1
It logs in okay, but when I try
stream = open('afile.txt','rb')
mydropbox.put('destfile.txt',stream)
I get a ticket
1.
2.
3.
4.
5.
6.
7.
8.
9.
10.
11.
12.
Traceback (most recent call last):
File "C:\Users\Peter\web2pyp1\gluon\restricted.py", line 212, in restricted
exec ccode in environment
File "C:/Users/Peter/web2pyp1/applications/new_spin2/controllers/default.py"
<http://127.0.0.1:8003/admin/default/edit/new_spin2/controllers/default.py>,
line 658, in <module>
File "C:\Users\Peter\web2pyp1\gluon\globals.py", line 188, in <lambda>
self._caller = lambda f: f()
File "C:/Users/Peter/web2pyp1/applications/new_spin2/controllers/default.py"
<http://127.0.0.1:8003/admin/default/edit/new_spin2/controllers/default.py>,
line 654, in test_dropbox1
mydropbox.put('destfile.txt',stream)
File
"C:\Users\Peter\web2pyp1\gluon\contrib\login_methods\dropbox_account.py", line
104, in put
return json.loads(self.client.put_file(filename, file))['bytes']
AttributeError: 'DropboxAccount' object has no attribute 'client'
Peter
--