happy5214 added a comment.
Version 4 is now available for hopefully prompt review:
F167782: Pywikibot-Flow class diagram.v4.png https://phabricator.wikimedia.org/F167782
I included UUID attributes and accessor methods for FlowPage (inherited by Board and Topic), Post, and FlowRevision. I struggled with how to handle the topic title API calls, first creating a Post subclass for topic roots before just deciding to create methods on Topic to handle editing topic titles. I would have just used the edit process for Post objects (modify the text attribute and call save()), but I figured there's a reason why topic title edits are handled separately in the Flow API.
Topic has two additional convenience methods: get_replies(), which returns root.replies; and get_topic_title(), which returns root.get(). I would not be surprised if all of the "attributes" end up as Python property-style function sets or something similar. getUUID() could just be the getter of a UUID property. The revisions "attribute" on Header, Post, and TopicSummary will probably be implemented by generator methods.
Finally, a question. Are all Flow workflows represented by pages and, if so, could FlowPage be renamed to Workflow?
TASK DETAIL https://phabricator.wikimedia.org/T98819
EMAIL PREFERENCES https://phabricator.wikimedia.org/settings/panel/emailpreferences/
To: happy5214 Cc: pywikipedia-bugs, Ladsgroup, Multichill, Ricordisamoa, Xqt, Mattflaschen, jayvdb, Capt_Swing, NiharikaKohli, EBernhardson, rmoen, gerritbot, Legoktm, happy5214, Aklapper