gazu 0.10.29__py2.py3-none-any.whl → 0.10.30__py2.py3-none-any.whl
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- gazu/__version__.py +1 -1
- gazu/files.py +31 -1
- {gazu-0.10.29.dist-info → gazu-0.10.30.dist-info}/METADATA +1 -1
- {gazu-0.10.29.dist-info → gazu-0.10.30.dist-info}/RECORD +7 -7
- {gazu-0.10.29.dist-info → gazu-0.10.30.dist-info}/WHEEL +1 -1
- {gazu-0.10.29.dist-info → gazu-0.10.30.dist-info}/LICENSE +0 -0
- {gazu-0.10.29.dist-info → gazu-0.10.30.dist-info}/top_level.txt +0 -0
gazu/__version__.py
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
__version__ = "0.10.
|
|
1
|
+
__version__ = "0.10.30"
|
gazu/files.py
CHANGED
|
@@ -1281,7 +1281,7 @@ def upload_project_avatar(project, file_path, client=default):
|
|
|
1281
1281
|
Upload given file as project avatar.
|
|
1282
1282
|
|
|
1283
1283
|
Args:
|
|
1284
|
-
project (str / dict): The project dict or
|
|
1284
|
+
project (str / dict): The project dict or ID.
|
|
1285
1285
|
file_path (str): Path of the file to upload as avatar.
|
|
1286
1286
|
"""
|
|
1287
1287
|
path = (
|
|
@@ -1291,6 +1291,36 @@ def upload_project_avatar(project, file_path, client=default):
|
|
|
1291
1291
|
return raw.upload(path, file_path, client=client)
|
|
1292
1292
|
|
|
1293
1293
|
|
|
1294
|
+
def download_organisation_avatar(organisation, file_path, client=default):
|
|
1295
|
+
"""
|
|
1296
|
+
Download given organisation's avatar and save it at given location.
|
|
1297
|
+
Args:
|
|
1298
|
+
organisation (str / dict): The organisation dict or ID.
|
|
1299
|
+
file_path (str): Location on hard drive where to save the file.
|
|
1300
|
+
"""
|
|
1301
|
+
organisation = normalize_model_parameter(organisation)
|
|
1302
|
+
return raw.download(
|
|
1303
|
+
"pictures/thumbnails/organisations/%s.png" % (organisation["id"]),
|
|
1304
|
+
file_path,
|
|
1305
|
+
client=client,
|
|
1306
|
+
)
|
|
1307
|
+
|
|
1308
|
+
|
|
1309
|
+
def upload_organisation_avatar(organisation, file_path, client=default):
|
|
1310
|
+
"""
|
|
1311
|
+
Upload given file as organisation avatar.
|
|
1312
|
+
|
|
1313
|
+
Args:
|
|
1314
|
+
organisation (str / dict): The organisation dict or ID.
|
|
1315
|
+
file_path (str): Path of the file to upload as avatar.
|
|
1316
|
+
"""
|
|
1317
|
+
path = (
|
|
1318
|
+
"/pictures/thumbnails/organisations/%s"
|
|
1319
|
+
% normalize_model_parameter(organisation)["id"]
|
|
1320
|
+
)
|
|
1321
|
+
return raw.upload(path, file_path, client=client)
|
|
1322
|
+
|
|
1323
|
+
|
|
1294
1324
|
def update_preview(preview_file, data, client=default):
|
|
1295
1325
|
"""
|
|
1296
1326
|
Update the data of given preview file.
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
gazu/__init__.py,sha256=KPAVnFOSbzZnd24ItkZEOv7yQ5w0Pv7k1TFmL8saiqY,2594
|
|
2
|
-
gazu/__version__.py,sha256=
|
|
2
|
+
gazu/__version__.py,sha256=iOKxsFZOVNSmrVXYoK4BW4KUnVle6bzjJehJThVn5Qo,24
|
|
3
3
|
gazu/asset.py,sha256=ZAc8F-7GPQTU_nVcUpH_xSVf58k6TXudlP6XnFc_LJk,14686
|
|
4
4
|
gazu/cache.py,sha256=MnxrnfYN7wHNTTL7qzkEpYCYzWcolT56fqQ0_RegMbE,5879
|
|
5
5
|
gazu/casting.py,sha256=0LTdsHaCTHSKEflBWFeuraSaYNYetGkMHAIdg6Lv81U,5059
|
|
@@ -11,7 +11,7 @@ gazu/encoder.py,sha256=dj8U5mlGVy0GeaA7HIIdPSRdKswUQ8h4DzjFKLhwvR0,394
|
|
|
11
11
|
gazu/entity.py,sha256=Pbc_sbgo8RhQV88nksP1whHyWL4hVyHR3CZ0sVplPY4,3670
|
|
12
12
|
gazu/events.py,sha256=4j8wbF4K-f5Kyu_jI4bklS12huzAN0cjCdY4hcKyhuk,2221
|
|
13
13
|
gazu/exception.py,sha256=Y0kVNm6h-uXLEU1sNIbMSUep7Zxk738uYHOIVs2waM8,1880
|
|
14
|
-
gazu/files.py,sha256=
|
|
14
|
+
gazu/files.py,sha256=tEKXY43JRNb00W6IPSt8SWlKtFtk3LI3FfbKTe26aao,40702
|
|
15
15
|
gazu/helpers.py,sha256=Qa4JlZitiXsfYMJGGuwVaedLvHQVMbIwcqEZ099EjMw,3916
|
|
16
16
|
gazu/person.py,sha256=Heqi3BRPheNXtvP8DRy4QJNPboAQwOrwUe_OrPtc-nQ,11434
|
|
17
17
|
gazu/playlist.py,sha256=fzrhVY0fhxp5rSlvrowZPWEOqdl4rEYD4TKmnuvyKHg,6740
|
|
@@ -22,8 +22,8 @@ gazu/sorting.py,sha256=qSIO0pOHkj0Tl4gm9BJrYrcifWGGGmsW68Pl86zB_bg,266
|
|
|
22
22
|
gazu/sync.py,sha256=3clThVFC9pSIQiCyVkNRPnlbYQDA2kfR-lxaWxHbeUk,21611
|
|
23
23
|
gazu/task.py,sha256=CsWS5II9b4Pbe4fcLt3HmUTvUD1hvZw7Uulqcp4W2_Y,38645
|
|
24
24
|
gazu/user.py,sha256=GyJf6mrynHvLllw3Hsiv-6wjaYTHO_PBNkJzyJjJA1A,9556
|
|
25
|
-
gazu-0.10.
|
|
26
|
-
gazu-0.10.
|
|
27
|
-
gazu-0.10.
|
|
28
|
-
gazu-0.10.
|
|
29
|
-
gazu-0.10.
|
|
25
|
+
gazu-0.10.30.dist-info/LICENSE,sha256=2n6rt7r999OuXp8iOqW9we7ORaxWncIbOwN1ILRGR2g,7651
|
|
26
|
+
gazu-0.10.30.dist-info/METADATA,sha256=PJBd4NKc4bHUAgPzpL8wqCsYGZ_BVsuOKzBtsP1399c,5471
|
|
27
|
+
gazu-0.10.30.dist-info/WHEEL,sha256=rF4EZyR2XVS6irmOHQIJx2SUqXLZKRMUrjsg8UwN-XQ,109
|
|
28
|
+
gazu-0.10.30.dist-info/top_level.txt,sha256=nv7fRIVpYYyIlk_66hBmMyvWcSC7UU-r-GE8uC1u1Go,5
|
|
29
|
+
gazu-0.10.30.dist-info/RECORD,,
|
|
File without changes
|
|
File without changes
|