Skip to content

Commit

Permalink
2.5.7 release
Browse files Browse the repository at this point in the history
  • Loading branch information
vgrem committed Apr 1, 2024
1 parent 1394511 commit 7e954f7
Show file tree
Hide file tree
Showing 3 changed files with 16 additions and 10 deletions.
12 changes: 3 additions & 9 deletions office365/sharepoint/attachments/attachment.py
Expand Up @@ -76,16 +76,12 @@ def _upload_file_by_path():
@property
def file_name(self):
# type: () -> Optional[str]
"""
Specifies the file name of the list item attachment.
"""
"""Specifies the file name of the list item attachment."""
return self.properties.get("FileName", None)

@property
def file_name_as_path(self):
"""
The file name of the attachment as a SP.ResourcePath.
"""
"""The file name of the attachment as a SP.ResourcePath."""
return self.properties.get("FileNameAsPath", SPResPath())

@property
Expand All @@ -96,9 +92,7 @@ def server_relative_url(self):

@property
def server_relative_path(self):
"""
The server-relative-path of the attachment.
"""
"""The server-relative-path of the attachment."""
return self.properties.get("ServerRelativePath", SPResPath())

@property
Expand Down
12 changes: 12 additions & 0 deletions office365/sharepoint/contenttypes/content_type.py
Expand Up @@ -111,6 +111,12 @@ def id(self):
"""
return self.properties.get("Id", ContentTypeId())

@property
def scope(self):
# type: () -> Optional[str]
"""Specifies a server-relative path to the content type scope of the content type."""
return self.properties.get("Scope", None)

@property
def sealed(self):
# type: () -> Optional[bool]
Expand Down Expand Up @@ -142,6 +148,12 @@ def new_form_client_side_component_properties(self):
item forms"""
return self.properties.get("NewFormClientSideComponentProperties", None)

@property
def new_form_url(self):
# type: () -> Optional[str]
"""Specifies the URL of a custom new form to use for list items that have been assigned the content type."""
return self.properties.get("NewFormUrl", None)

@property
def description(self):
# type: () -> Optional[str]
Expand Down
2 changes: 1 addition & 1 deletion setup.py
Expand Up @@ -10,7 +10,7 @@

setup(
name="Office365-REST-Python-Client",
version="2.5.6",
version="2.5.7",
author="Vadim Gremyachev",
author_email="vvgrem@gmail.com",
maintainer="Konrad Gądek, Domenico Di Nicola",
Expand Down

0 comments on commit 7e954f7

Please sign in to comment.