Bináris | 3 Apr 2012 15:15
Picon

-simulate

2012/2/18 <drtrigon <at> 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.

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?)

--
Bináris
_______________________________________________
Pywikipedia-l mailing list
Pywikipedia-l <at> lists.wikimedia.org
https://lists.wikimedia.org/mailman/listinfo/pywikipedia-l
Dr. Trigon | 13 Jun 2012 12:33
Picon

Re: -simulate


On 03.04.2012 15:15, Bináris wrote:
> 2012/2/18 <drtrigon <at> svn.wikimedia.org
> <mailto:drtrigon <at> 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

info | 13 Jun 2012 13:04
Picon

Re: -simulate

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.trigon <at> surfeu.ch>
An:      pywikipedia-l <at> lists.wikimedia.org
Datum:   13.06.2012 12:33
Betreff: Re: [Pywikipedia-l] -simulate

> -----BEGIN PGP SIGNED MESSAGE-----
> Hash: SHA1
> 
> On 03.04.2012 15:15, Bináris wrote:
> > 2012/2/18 <drtrigon <at> svn.wikimedia.org
> > <mailto:drtrigon <at> 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
> 
> -----BEGIN PGP SIGNATURE-----
> Version: GnuPG v1.4.12 (GNU/Linux)
> Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org/
> 
> iEYEARECAAYFAk/YbIwACgkQAXWvBxzBrDBQJgCgtni2fi8+LOSv8OXI0lsEAjIq
> m6YAoI/GXnXunNJe/FuZTytN93q72Vzk
> =VSqw
> -----END PGP SIGNATURE-----
> 
> _______________________________________________
> Pywikipedia-l mailing list
> Pywikipedia-l <at> lists.wikimedia.org
> https://lists.wikimedia.org/mailman/listinfo/pywikipedia-l
>
Dr. Trigon | 13 Jun 2012 15:01
Picon

Re: -simulate


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, info <at> 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.trigon <at> surfeu.ch> An:      pywikipedia-l <at> 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 <drtrigon <at> svn.wikimedia.org 
>>>> <mailto:drtrigon <at> 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 <at> lists.wikimedia.org 
>> https://lists.wikimedia.org/mailman/listinfo/pywikipedia-l
>> 
> 
> _______________________________________________ Pywikipedia-l
> mailing list Pywikipedia-l <at> lists.wikimedia.org 
> https://lists.wikimedia.org/mailman/listinfo/pywikipedia-l
> 


Gmane