<div class="gmail_quote">On 23 October 2010 12:13, Bináris <span dir="ltr"><<a href="mailto:wikiposta@gmail.com">wikiposta@gmail.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin: 0pt 0pt 0pt 0.8ex; border-left: 1px solid rgb(204, 204, 204); padding-left: 1ex;">
quitting with "q". Not applicable with ctrl C. Here is a little bug, the counter cannot check if put_async _will_ be successful.<br></blockquote></div><br>It can.<br><br><pre> def put_async(self, newtext,
comment=None, watchArticle=None, minorEdit=True, force=False,
callback=None):<br>(...)
callback: a callable object that will be called after the page put
operation; this object must take two arguments:
(1) a Page object, and (2) an exception instance, which
will be None if the page was saved successfully.
</pre>Just make sure you know how to do multithreading, or this will come back to bite you. (No, incrementing a global variable is not the right way.)<br><br>Best regards,<br>Merlijn<br><div style="visibility: hidden; display: inline;" id="avg_ls_inline_popup">
</div><style type="text/css">#avg_ls_inline_popup { position:absolute; z-index:9999; padding: 0px 0px; margin-left: 0px; margin-top: 0px; width: 240px; overflow: hidden; word-wrap: break-word; color: black; font-size: 10px; text-align: left; line-height: 13px;}</style>