-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 I prefer no to rise exceptions as long as the code CAN continue to run... ;) But good idea to print a deprecated hint if -dry was used; I forgot this one!
Greetings! On 13.06.2012 13:04, i...@gno.de wrote: > I just made a comment at CR. Removing these options could confuse > bot owners or break bot maintenance. You should either implement an > option alias or raise a nonimplemented error to prevent it's use > without -simulate but with the old one. And print a hint that the > old option is deprecated (if you prefer the alias) or removed (if > you raise the exception) > > Greetings xqt > > > ----- Original Nachricht ---- Von: "Dr. Trigon" > <dr.tri...@surfeu.ch> An: pywikipedia-l@lists.wikimedia.org > Datum: 13.06.2012 12:33 Betreff: Re: [Pywikipedia-l] -simulate > > On 03.04.2012 15:15, BinĂ¡ris wrote: >>>> 2012/2/18 <drtri...@svn.wikimedia.org >>>> <mailto:drtri...@svn.wikimedia.org>> >>>> >>>> http://www.mediawiki.org/wiki/Special:Code/pywikipedia/9909 >>>> >>>> Revision: 9909 Author: drtrigon Date: 2012-02-17 >>>> 23:09:15 +0000 (Fri, 17 Feb 2012) Log Message: ----------- >>>> follow-up to r9905 '-debug' replaced with new '-simulate' >>>> that allows switching off write access >>>> >>>> >>>> Trigon, this is great, thank you! I have just tried it and >>>> works fine and helps in testing a lot. > > Your wellcome!! > >>>> Several scripts use their own mechanism for that with "-dry" >>>> or "-test" or something; we should revise these if they are >>>> still neccessary or may be removed. (As far as I understand >>>> -simulate works with API query. What happens if somebody uses >>>> the bot without API?) > > Please consider r10354 and r10353. Hope this is what you had in > mind (back those days... ;) > > Greetings DrTrigon > >> >> _______________________________________________ Pywikipedia-l >> mailing list Pywikipedia-l@lists.wikimedia.org >> https://lists.wikimedia.org/mailman/listinfo/pywikipedia-l >> > > _______________________________________________ Pywikipedia-l > mailing list Pywikipedia-l@lists.wikimedia.org > https://lists.wikimedia.org/mailman/listinfo/pywikipedia-l > -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.12 (GNU/Linux) Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org/ iEYEARECAAYFAk/YjygACgkQAXWvBxzBrDBIjgCgxvlCrczSYk5IbJk1fc+JmwDo hC0An2cIumjp5wZUy5hrjfwKCZBXvplx =KMLJ -----END PGP SIGNATURE----- _______________________________________________ Pywikipedia-l mailing list Pywikipedia-l@lists.wikimedia.org https://lists.wikimedia.org/mailman/listinfo/pywikipedia-l