jayvdb added a comment.
In
https://phabricator.wikimedia.org/T98819#1291540, @happy5214 wrote:
Version 2 is up, and a version 3 should be posted by
Monday night/Tuesday morning.
F165531: Pywikibot-Flow class diagram.v2.png
<https://phabricator.wikimedia.org/F165531>
I created a new superclass for revision-type objects (TopicSummary, Header, and Post),
which I named FlowRevision.
Note we have a Revision class for Page revisions.
It probably isn't necessary due to Python's
duck typing, and I'll probably remove it in v3. I also changed method names to remove
redundant wording. I redid the inheritance for Topic and Board, making them subclass
FlowPage, which inherits from BasePage instead of Page.
Looks good as a foundation.
I will still have to research how API calls are made
in Pywikibot. It looks like the site objects handle that.
Yes. Page objects are the API for the script writer , and Site objects contain python-ised
equivalent wrapper for each endpoint in the MediaWiki API.
TASK DETAIL
https://phabricator.wikimedia.org/T98819
EMAIL PREFERENCES
https://phabricator.wikimedia.org/settings/panel/emailpreferences/
To: happy5214, jayvdb
Cc: pywikipedia-bugs, Ladsgroup, Multichill, Ricordisamoa, Xqt, Mattflaschen, jayvdb,
Capt_Swing, NiharikaKohli, EBernhardson, rmoen, gerritbot, Legoktm, happy5214, Aklapper