Use summary_input param in post_page so that the buffer doesn't keep recursively re-adding the postfix/prefix. Also change one time summary was called as a named param so it doesn't break with this change.
I'm not sure if another change needs to be made here or not though:
def on_done(self, summary=None):
if summary is None:
summary = ''
if not utils.api.page_can_edit(self.page):
self.set_summary_buffer(summary)
utils.error_message(utils.api.PAGE_CANNOT_EDIT_MESSAGE)
return
self.post_page(summary)
Use summary_input param in post_page so that the buffer doesn't keep recursively re-adding the postfix/prefix. Also change one time summary was called as a named param so it doesn't break with this change.
I'm not sure if another change needs to be made here or not though: