happy5214 added a comment. An amendment to the above Phase 1 design is to add a method to APISite, named new_topic, to use the new-topic Flow API submodule to create new topics. This method will return a dict and have four parameters:
- page (Board): The board this topic will belong to. - title (unicode): The topic title. - content (unicode): The contents of the first post. - format (unicode; either 'wikitext' or 'html'): The content format of the initial post. Defaults to 'wikitext'. It will be called by Board.new_topic() to create a new topic on that board. That method will then create a new Topic object using the information returned by the API call and then return the object to the calling code. A Post object will be returned by Post.reply() in a similar fashion. Another amendment is that all **kwargs parameters have been removed. They will be added back on a case-by-case basis if needed. TASK DETAIL https://phabricator.wikimedia.org/T98819 EMAIL PREFERENCES https://phabricator.wikimedia.org/settings/panel/emailpreferences/ To: happy5214 Cc: XZise, Ladsgroup, Multichill, Ricordisamoa, Xqt, Mattflaschen, jayvdb, Capt_Swing, NiharikaKohli, EBernhardson, rmoen, gerritbot, Legoktm, happy5214, Aklapper, pywikipedia-bugs _______________________________________________ pywikibot-bugs mailing list [email protected] https://lists.wikimedia.org/mailman/listinfo/pywikibot-bugs
