From 83a4f4caf08a999926203ed2d73e4f17e3497625 Mon Sep 17 00:00:00 2001 From: zackn9ne Date: Fri, 17 Mar 2023 15:36:49 -0400 Subject: [PATCH] Update confluence.py allows fixed-width for page create & update --- atlassian/confluence.py | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/atlassian/confluence.py b/atlassian/confluence.py index 18fc7f452..a226e6a0a 100644 --- a/atlassian/confluence.py +++ b/atlassian/confluence.py @@ -758,6 +758,10 @@ def create_page( if full_width is True: data["metadata"]["properties"]["content-appearance-draft"] = {"value": "full-width"} data["metadata"]["properties"]["content-appearance-published"] = {"value": "full-width"} + else: + data["metadata"]["properties"]["content-appearance-draft"] = {"value": "fixed-width"} + data["metadata"]["properties"]["content-appearance-published"] = {"value": "fixed-width"} + try: response = self.post(url, data=data) except HTTPError as e: @@ -1643,6 +1647,9 @@ def update_page( if full_width is True: data["metadata"]["properties"]["content-appearance-draft"] = {"value": "full-width"} data["metadata"]["properties"]["content-appearance-published"] = {"value": "full-width"} + else: + data["metadata"]["properties"]["content-appearance-draft"] = {"value": "fixed-width"} + data["metadata"]["properties"]["content-appearance-published"] = {"value": "fixed-width"} try: response = self.put( "rest/api/content/{0}".format(page_id),