Skip to content

Commit

Permalink
Allow title to be unset for pages
Browse files Browse the repository at this point in the history
According to a test case provided in #22 it is possible
for the title of a confluence page to be unset.

Refs #22
  • Loading branch information
David Tyler committed Sep 19, 2019
1 parent 0ee0046 commit 166400e
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion confluence/models/content.py
Original file line number Diff line number Diff line change
Expand Up @@ -66,10 +66,12 @@ def __init__(self, json): # type: (Dict[str, Any]) -> None
if id.startswith('att'):
id = id[3:]
self.id = int(id)
self.title = json['title'] # type: str
self.status = ContentStatus(json['status']) # type: ContentStatus
self.type = ContentType(json['type']) # type: ContentType

if 'title' in json:
self.title = json['title'] # type: str

if 'metadata' in json:
self.metadata = json['metadata'] # type: Dict[str, Any]

Expand Down

0 comments on commit 166400e

Please sign in to comment.