-
-
Notifications
You must be signed in to change notification settings - Fork 333
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
#730: fix for SitePage.checkout_page method, workbooks namespace new …
…types
- Loading branch information
Showing
34 changed files
with
298 additions
and
63 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,10 @@ | ||
from office365.sharepoint.client_context import ClientContext | ||
from office365.sharepoint.listitems.listitem import ListItem | ||
from tests import test_client_credentials, test_team_site_url | ||
|
||
|
||
ctx = ClientContext(test_team_site_url).with_credentials(test_client_credentials) | ||
view = ctx.web.default_document_library().views.get_by_title("All Documents") | ||
items = view.get_items().expand(["Author"]).execute_query() | ||
for item in items: # type: ListItem | ||
print(item.properties) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
""" | ||
Read list items from a default view | ||
""" | ||
from office365.sharepoint.client_context import ClientContext | ||
from office365.sharepoint.listitems.listitem import ListItem | ||
from tests import test_client_credentials, test_team_site_url | ||
|
||
|
||
ctx = ClientContext(test_team_site_url).with_credentials(test_client_credentials) | ||
lib = ctx.web.default_document_library() | ||
items = lib.default_view.get_items().execute_query() | ||
for item in items: # type: ListItem | ||
print(item.properties) |
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
from office365.runtime.client_value import ClientValue | ||
|
||
|
||
class WorkbookFilterCriteria(ClientValue): | ||
"""Represents the filtering criteria applied to a column.""" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
from office365.entity import Entity | ||
|
||
|
||
class WorkbookRangeBorder(Entity): | ||
"""Represents the border of an object.""" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
from office365.entity import Entity | ||
|
||
|
||
class WorkbookRangeFill(Entity): | ||
"""Represents the background of a range object.""" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
from office365.entity import Entity | ||
|
||
|
||
class WorkbookRangeSort(Entity): | ||
"""Manages sorting operations on Range objects.""" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Empty file.
File renamed without changes.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
from office365.outlook.calendar.timezones.base import TimeZoneBase | ||
|
||
|
||
class CustomTimeZone(TimeZoneBase): | ||
""" | ||
Represents a time zone where the transition from standard to daylight saving time, or vice versa is not standard. | ||
""" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,19 +1,30 @@ | ||
from office365.outlook.mail.recipient import Recipient | ||
from office365.runtime.client_value import ClientValue | ||
from office365.runtime.client_value_collection import ClientValueCollection | ||
from office365.runtime.types.collections import StringCollection | ||
|
||
|
||
class MessageRulePredicates(ClientValue): | ||
"""Represents the set of conditions and exceptions that are available for a rule.""" | ||
|
||
def __init__(self, body_contains=None, body_or_subject_contains=None, categories=None): | ||
def __init__(self, body_contains=None, body_or_subject_contains=None, categories=None, | ||
from_addresses=None, has_attachments=None, header_contains=None): | ||
""" | ||
:param list[str] body_contains: Represents the strings that should appear in the body of an incoming message | ||
in order for the condition or exception to apply. | ||
:param list[str] body_or_subject_contains: Represents the strings that should appear in the body or subject | ||
of an incoming message in order for the condition or exception to apply. | ||
:param list[str] categories: Represents the categories that an incoming message should be labeled with in | ||
order for the condition or exception to apply. | ||
:param list[Recipient] from_addresses: Represents the specific sender email addresses of an incoming message | ||
in order for the condition or exception to apply. | ||
:param bool has_attachments: Indicates whether an incoming message must have attachments in order for the | ||
condition or exception to apply. | ||
:param list[str] header_contains: | ||
""" | ||
self.bodyContains = StringCollection(body_contains) | ||
self.bodyOrSubjectContains = StringCollection(body_or_subject_contains) | ||
self.categories = StringCollection(categories) | ||
self.fromAddresses = ClientValueCollection(Recipient, from_addresses) | ||
self.hasAttachments = has_attachments | ||
self.headerContains = StringCollection(header_contains) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.