fixed some dropbox issues, thanks Jesus

This commit is contained in:
mdipierro
2013-05-10 08:32:51 -05:00
parent 6590de030c
commit f00090846e
2 changed files with 4 additions and 4 deletions
+1 -1
View File
@@ -1 +1 @@
Version 2.4.6-stable+timestamp.2013.05.10.08.28.07
Version 2.4.6-stable+timestamp.2013.05.10.08.32.00
@@ -105,15 +105,15 @@ class DropboxAccount(object):
def put(self, filename, file):
if not hasattr(self,'client'): self.get_client()
return json.loads(self.client.put_file(filename, file))['bytes']
return self.client.put_file(filename, file)['bytes']
def get(self, filename, file):
def get(self, filename):
if not hasattr(self,'client'): self.get_client()
return self.client.get_file(filename)
def dir(self, path):
if not hasattr(self,'client'): self.get_client()
return json.loads(self.client.metadata(path))
return self.client.metadata(path)
def use_dropbox(auth, filename='private/dropbox.key', **kwargs):