mirror of
https://github.com/clearml/clearml-server
synced 2025-04-28 09:51:10 +00:00
Better support for assets upload/download
This commit is contained in:
parent
af09fba755
commit
e537651f29
@ -95,8 +95,8 @@ class DataContainer(object):
|
|||||||
@raw_data.setter
|
@raw_data.setter
|
||||||
def raw_data(self, value):
|
def raw_data(self, value):
|
||||||
assert isinstance(
|
assert isinstance(
|
||||||
value, string_types + (types.GeneratorType,)
|
value, string_types + (types.GeneratorType, bytes)
|
||||||
), "Raw data must be a string type or generator"
|
), "Raw data must be a string type or bytes or generator"
|
||||||
self._raw_data = value
|
self._raw_data = value
|
||||||
|
|
||||||
@property
|
@property
|
||||||
@ -395,6 +395,10 @@ class APICall(DataContainer):
|
|||||||
self._auth_cookie = auth_cookie
|
self._auth_cookie = auth_cookie
|
||||||
self._json_flags = {}
|
self._json_flags = {}
|
||||||
|
|
||||||
|
@property
|
||||||
|
def files(self):
|
||||||
|
return self._files
|
||||||
|
|
||||||
@property
|
@property
|
||||||
def id(self):
|
def id(self):
|
||||||
return self._id
|
return self._id
|
||||||
|
Loading…
Reference in New Issue
Block a user