Skip to content

Commit e5c140b

Browse files
SharePoint API: sharing & permissions namespaces changes (RoleDefintion and RoleAssignment resources), examples refactorings
1 parent 4de9e92 commit e5c140b

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

48 files changed

+421
-192
lines changed

README.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,10 @@
11
# About
22
Office 365 & Microsoft Graph library for Python
33

4+
5+
#### Sponsored by
6+
[![https://tracking.gitads.io/?repo=Office365-REST-Python-Client](https://images.gitads.io/Office365-REST-Python-Client)](https://tracking.gitads.io/?repo=Office365-REST-Python-Client)
7+
48
# Usage
59

610
1. [Installation](#Installation)

examples/sharepoint/audit/__init__.py

Whitespace-only changes.

examples/sharepoint/files/__init__.py

Whitespace-only changes.

examples/sharepoint/upload_file.py renamed to examples/sharepoint/files/upload_file.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@
99
UserCredential(settings['user_credentials']['username'],
1010
settings['user_credentials']['password']))
1111

12-
path = "../../tests/data/SharePoint User Guide.docx"
12+
path = "../../../tests/data/SharePoint User Guide.docx"
1313
with open(path, 'rb') as content_file:
1414
file_content = content_file.read()
1515

examples/sharepoint/upload_large_file.py renamed to examples/sharepoint/files/upload_large_file.py

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,4 @@
11
from settings import settings
2-
32
from office365.runtime.auth.userCredential import UserCredential
43
from office365.sharepoint.client_context import ClientContext
54

@@ -13,7 +12,7 @@ def print_upload_progress(offset):
1312
UserCredential(settings['user_credentials']['username'],
1413
settings['user_credentials']['password']))
1514
size_1Mb = 1000000
16-
local_path = "../../tests/data/big_buck_bunny.mp4"
15+
local_path = "../../../tests/data/big_buck_bunny.mp4"
1716
target_url = "/Shared Documents"
1817
result_file = ctx.web.get_folder_by_server_relative_url(target_url) \
1918
.files.create_upload_session(local_path, size_1Mb, print_upload_progress)

examples/sharepoint/folders/__init__.py

Whitespace-only changes.

0 commit comments

Comments
 (0)