File tree Expand file tree Collapse file tree 1 file changed +7
-0
lines changed Expand file tree Collapse file tree 1 file changed +7
-0
lines changed Original file line number Diff line number Diff line change @@ -758,6 +758,10 @@ def create_page(
758
758
if full_width is True :
759
759
data ["metadata" ]["properties" ]["content-appearance-draft" ] = {"value" : "full-width" }
760
760
data ["metadata" ]["properties" ]["content-appearance-published" ] = {"value" : "full-width" }
761
+ else :
762
+ data ["metadata" ]["properties" ]["content-appearance-draft" ] = {"value" : "fixed-width" }
763
+ data ["metadata" ]["properties" ]["content-appearance-published" ] = {"value" : "fixed-width" }
764
+
761
765
try :
762
766
response = self .post (url , data = data )
763
767
except HTTPError as e :
@@ -1643,6 +1647,9 @@ def update_page(
1643
1647
if full_width is True :
1644
1648
data ["metadata" ]["properties" ]["content-appearance-draft" ] = {"value" : "full-width" }
1645
1649
data ["metadata" ]["properties" ]["content-appearance-published" ] = {"value" : "full-width" }
1650
+ else :
1651
+ data ["metadata" ]["properties" ]["content-appearance-draft" ] = {"value" : "fixed-width" }
1652
+ data ["metadata" ]["properties" ]["content-appearance-published" ] = {"value" : "fixed-width" }
1646
1653
try :
1647
1654
response = self .put (
1648
1655
"rest/api/content/{0}" .format (page_id ),
You can’t perform that action at this time.
0 commit comments