"Morten Wang" <[email protected]> wrote on Friday, May 14, 2010 12:08 PM:
>I notice the warnings from the API module that the 'watch' parameter > is deprecated. This happens even though I switched from using > Page.put() to Page.save(), for the latter the watch parameter is not > deprecated. > > Last time I looked I couldn't find an alternate way to add/remove > pages to the bot's watchlist, thus I kept the watch parameter in my > save() calls. Is there one? Or should I just ignore the API warnings? It turns out, the problem is that the API interface for the "watch" parameter when saving pages was changed about six months ago, but there was never any announcement of the change. (I thought we were using the API specifically so that this kind of thing wouldn't happen....) So the bot code was handling the "watch" parameter according to the old rules, not the new ones, which caused the deprecation warnings. This should be fixed now. I've also added a new Site method, .watchpage(page, unwatch=False) that will allow you to watch/unwatch page without having to save it. I'll add a Page method to call this shortly. Russ _______________________________________________ Pywikipedia-l mailing list [email protected] https://lists.wikimedia.org/mailman/listinfo/pywikipedia-l
