-
-
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.
#722 fix for addressing resource, new types in publishing namespace
- Loading branch information
Showing
9 changed files
with
47 additions
and
7 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,8 +1,8 @@ | ||
from office365.sharepoint.client_context import ClientContext | ||
from tests import test_client_credentials, test_site_url | ||
ctx = ClientContext(test_site_url).with_credentials(test_client_credentials) | ||
from tests import test_client_credentials, test_team_site_url | ||
|
||
file = ctx.web.get_file_by_server_relative_path("/SitePages/Home.aspx") | ||
ctx = ClientContext(test_team_site_url).with_credentials(test_client_credentials) | ||
|
||
file = ctx.web.get_file_by_server_relative_path("SitePages/Home.aspx") | ||
file_item = file.listItemAllFields.select(["CanvasContent1", "LayoutWebpartsContent"]).get().execute_query() | ||
print(file_item.properties.get("CanvasContent1")) | ||
|
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,8 @@ | ||
from office365.sharepoint.base_entity import BaseEntity | ||
|
||
|
||
class BaseCustomProperty(BaseEntity): | ||
|
||
@property | ||
def entity_type_name(self): | ||
return "Microsoft.SharePoint.Publishing.RestOnly.BaseCustomProperty" |
8 changes: 8 additions & 0 deletions
8
office365/sharepoint/publishing/navigation/structural_navigation_cache_wrapper.py
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,8 @@ | ||
from office365.sharepoint.base_entity import BaseEntity | ||
|
||
|
||
class StructuralNavigationCacheWrapper(BaseEntity): | ||
|
||
@property | ||
def entity_type_name(self): | ||
return "SP.Publishing.Navigation.StructuralNavigationCacheWrapper" |
Empty file.
8 changes: 8 additions & 0 deletions
8
office365/sharepoint/publishing/pagecopywithassets/response.py
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,8 @@ | ||
from office365.sharepoint.base_entity import BaseEntity | ||
|
||
|
||
class PageCopyResponse(BaseEntity): | ||
|
||
@property | ||
def entity_type_name(self): | ||
return "Microsoft.SharePoint.Publishing.PageCopyWithAssets.PageCopyResponse" |
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,8 @@ | ||
from office365.sharepoint.publishing.pages.metadata import SitePageMetadata | ||
|
||
|
||
class RepostPageMetadata(SitePageMetadata): | ||
|
||
@property | ||
def entity_type_name(self): | ||
return "SP.Publishing.RepostPageMetadata" |
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