fixed some dropbox issues, thanks Jesus
This commit is contained in:
@@ -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):
|
||||
|
||||
Reference in New Issue
Block a user