fix upload by oshash, support extract by path
This commit is contained in:
parent
5557ac5e15
commit
917b3ff921
1 changed files with 4 additions and 1 deletions
|
@ -368,7 +368,9 @@ class Client(object):
|
||||||
'/versions' in path.lower():
|
'/versions' in path.lower():
|
||||||
return False
|
return False
|
||||||
return True
|
return True
|
||||||
files = filter(no_extras, files)
|
files = filter(no_extras, files)
|
||||||
|
else:
|
||||||
|
files = [len(f) == 16 and f or ox.oshash(f) for f in args]
|
||||||
else:
|
else:
|
||||||
if not self.user:
|
if not self.user:
|
||||||
print "you need to login or run pandora_client extract offline"
|
print "you need to login or run pandora_client extract offline"
|
||||||
|
@ -483,6 +485,7 @@ class Client(object):
|
||||||
else:
|
else:
|
||||||
data.append(arg)
|
data.append(arg)
|
||||||
files = []
|
files = []
|
||||||
|
info = []
|
||||||
else:
|
else:
|
||||||
#send empty list to get updated list of requested info/files/data
|
#send empty list to get updated list of requested info/files/data
|
||||||
post = {'info': {}}
|
post = {'info': {}}
|
||||||
|
|
Loading…
Reference in a new issue