Skip to content

Commit 7e954f7

Browse files
committed
2.5.7 release
1 parent 1394511 commit 7e954f7

File tree

3 files changed

+16
-10
lines changed

3 files changed

+16
-10
lines changed

Diff for: office365/sharepoint/attachments/attachment.py

+3-9
Original file line numberDiff line numberDiff line change
@@ -76,16 +76,12 @@ def _upload_file_by_path():
7676
@property
7777
def file_name(self):
7878
# type: () -> Optional[str]
79-
"""
80-
Specifies the file name of the list item attachment.
81-
"""
79+
"""Specifies the file name of the list item attachment."""
8280
return self.properties.get("FileName", None)
8381

8482
@property
8583
def file_name_as_path(self):
86-
"""
87-
The file name of the attachment as a SP.ResourcePath.
88-
"""
84+
"""The file name of the attachment as a SP.ResourcePath."""
8985
return self.properties.get("FileNameAsPath", SPResPath())
9086

9187
@property
@@ -96,9 +92,7 @@ def server_relative_url(self):
9692

9793
@property
9894
def server_relative_path(self):
99-
"""
100-
The server-relative-path of the attachment.
101-
"""
95+
"""The server-relative-path of the attachment."""
10296
return self.properties.get("ServerRelativePath", SPResPath())
10397

10498
@property

Diff for: office365/sharepoint/contenttypes/content_type.py

+12
Original file line numberDiff line numberDiff line change
@@ -111,6 +111,12 @@ def id(self):
111111
"""
112112
return self.properties.get("Id", ContentTypeId())
113113

114+
@property
115+
def scope(self):
116+
# type: () -> Optional[str]
117+
"""Specifies a server-relative path to the content type scope of the content type."""
118+
return self.properties.get("Scope", None)
119+
114120
@property
115121
def sealed(self):
116122
# type: () -> Optional[bool]
@@ -142,6 +148,12 @@ def new_form_client_side_component_properties(self):
142148
item forms"""
143149
return self.properties.get("NewFormClientSideComponentProperties", None)
144150

151+
@property
152+
def new_form_url(self):
153+
# type: () -> Optional[str]
154+
"""Specifies the URL of a custom new form to use for list items that have been assigned the content type."""
155+
return self.properties.get("NewFormUrl", None)
156+
145157
@property
146158
def description(self):
147159
# type: () -> Optional[str]

Diff for: setup.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@
1010

1111
setup(
1212
name="Office365-REST-Python-Client",
13-
version="2.5.6",
13+
version="2.5.7",
1414
author="Vadim Gremyachev",
1515
author_email="[email protected]",
1616
maintainer="Konrad Gądek, Domenico Di Nicola",

0 commit comments

Comments
 (0)