On 17 February 2012 10:03, Hannes Röst
<hroest_nospam2333(a)quantentunnel.de>wrote:
> What are the criteria to get SVN commit access -- I was just wondering
>> what the general rules are.
>>
>
The general rule is that there should be someone who already has access
supports your request. In general, this is a basic check on code quality
(which look OK to me), and on communication (we've had someone with svn
access who did do commits, but didn't reply to comments...) - which is also
OK as far as I can see.
If you feel you can integrate it with the framework in a sensible way (e.g.
get_all_templates should use the one in the framework), I think you should
just get SVN access (we can always revoke it if you're horrible after all
;-)).
If no-one disagrees with me on this (within, say, a week or so), feel free
to send an e-mail to Sumana Harihareswara (who coordinates SVN access) at
sumanah(a)wikimedia.org, linking to this thread (e.g. a link to the mail at
[1]).
Best,
Merlijn
[1] http://thread.gmane.org/gmane.comp.python.pywikipediabot.general
Greetings-
My name is Randall Livingstone, and I am a graduate student at the
University of Oregon, currently collecting data for my dissertation on
Wikipedia editors who create and use bots and assisted editing tools, as
well as editors involved in the technical infrastructure of Wikipedia. I
am looking for members of the bot community or MediaWiki developers to
interview regarding their experiences on Wikipedia and opinions of
technical and governance issues on the site. The interview can be conducted
in a manner convenient for you (Gchat, IRC, another IM client, email,
Skype, telephone, or even in-person) and should take approximately 45-60
minutes. I am completely flexible and can work with your schedule.
Your participation will help online communication researchers like me to
better understand the collaborations, challenges, and purposeful work of
Wikipedia editors and programmers like you.
My dissertation project has been approved both by the Institutional Review
Board (IRB) at the University of Oregon, and by the Research Committee at
the Wikimedia Foundation. You can find more information on the project at
my meta page<http://meta.wikimedia.org/wiki/Research:Understanding_the_Editor/Bot_Relati…>
:
If you would like to participate or have any questions, please contact me
directly via email or by leaving a message on my talk
page<http://en.wikipedia.org/wiki/User:UOJComm>.
Thank you in advance for your interest.
Randall Livingstone
School of Journalism & Communication
University of Oregon
livingst(a)uoregon.edu
User:UOJComm
Hi,
I run an own script on a remote Linux toolserver in the background. I
suppressed my own screen outputs for that purpose. However, the program
uses pagenerators.py, and my screen is infinitely full of lines lik these:
Getting 60 pages from wikipedia:hu...
Sleeping for 4.5 seconds, 2011-12-22 14:19:06
Getting 60 pages from wikipedia:hu...
Sleeping for 4.6 seconds, 2011-12-22 14:19:12
Getting 60 pages from wikipedia:hu...
Sleeping for 4.2 seconds, 2011-12-22 14:19:19
Getting 60 pages from wikipedia:hu...
Sleeping for 4.1 seconds, 2011-12-22 14:19:25
Getting 60 pages from wikipedia:hu...
Sleeping for 4.3 seconds, 2011-12-22 14:19:30
Getting 60 pages from wikipedia:hu...
Sleeping for 4.2 seconds, 2011-12-22 14:19:36
Sleeping for 4.1 seconds, 2011-12-22 14:19:42
Getting 60 pages from wikipedia:hu...
Getting 60 pages from wikipedia:hu...
This is not only ugly but prevents me of using the console.
Is there any way to suppress these messages and run pagegenerators in
silent mode?
--
Bináris
Hi everyone,
Some time ago I played around with computer vision to get images
categorized on Commons. I documented this at
https://commons.wikimedia.org/wiki/User:Multichill/Using_OpenCV_to_categori…
. I don't think I'm going to spend time on it soon, but the results were
quite promising, so maybe someone else feels like working on this? Would
probably be a pretty nice student project or just fun to do.
Maarten
Was: Parameters of handleArgs
I went back to this conversation with Russell, and tried to use it in an
other way. I have console encoding problems with this command with Cyrillic
letters:
replace.py -catr:Венгрия . @ -lang:ru -excepttext:"[[hu:"
-save:magyarok.txt -always
One way is to urlencode the Russian category. Other way is to insert it
into a script. (DOS batch files won't work, I already tried.)
So what I did:
import replace
replace.main(u'-catr:Венгрия', '.', '@', '-lang:ru', '-excepttext:"[[hu:"',
'-save:magyarok.txt')
This results in an error message:
File "C:\Pywikipedia\replace.py", line 582, in main
for arg in pywikibot.handleArgs(*args):
File "C:\Pywikipedia\wikipedia.py", line 7795, in handleArgs
arg = _decodeArg(arg)
File "C:\Pywikipedia\wikipedia.py", line 7767, in _decodeArg
return unicode(arg, config.console_encoding)
TypeError: decoding Unicode is not supported
If I omit u from before -catr, no error is thrown, but the name is
erroneously decoded.
Now comes the tick! I went to line 7795 of current wikipedia.py (r9894) as
shown above, and commented it out. Now my script runs perfectly! I love it!
I don't want to spoil handleArgs() and I know this is an unusual use of it.
But is it possible in some way to pass a parameter to it that tells
_decodeArg to shut up? Or is there another correct way of passing Unicode
parameters from within a script?
2011/5/18 Russell Blau <russblau(a)imapmail.org>
> Bináris said:
>
> > I see in a couple of bots this construction:
> >
> > def main(*args):
> > for arg in pywikibot.handleArgs(*args):
> > etc.
> >
> > Now, if I write instead of this
> > def main():
> > for arg in pywikibot.handleArgs():
> > etc.
> > the result seems to be just the same. I tried with valid global and with
> > unique parameters as well.
> > So, what is the difference?
> > I know the theory that * means a variable width argument list, but if I
> > omit it, the behaviour does > not change.
>
> The behavior is the same if you run the script from the command line.
>
> However, using (*args) also allows you the option of running the script
> from
> inside the Python interactive interpreter; for example, if you were running
> "replace.py Foo Bar -start:!", then you could "import replace" in the
> interpreter and run <code>replace.main("Foo", "Bar", "-start:!")</code>.
> This can be useful for debugging, among other things.
>
--
Bináris
Hello all,
In some spare time, I hacked together an automated test runner that runs
all pywikipedia's tests after the last nightly release has been generated,
and posts the results online. Currently, most tests seem to be
malfunctioning in one way or another, so it needs some work.
The results are available at:
http://toolserver.org/~pywikipedia/nightly/testing/test_pywikipedia.txt (and
in xunit format, if anyone prefers that).
Best,
Merlijn
I want to read a special page with Page.get(). The message is:
File "C:\Program Files\Pywikipedia\wikipedia.py", line 601, in get
raise NoPage('%s is in the Special namespace!' % self.aslink())
pywikibot.exceptions.NoPage
What is the solution?
--
Bináris
----- Original Nachricht ----
Von: Merlijn van Deen <valhallasw(a)arctus.nl>
An: Pywikipedia discussion list <pywikipedia-l(a)lists.wikimedia.org>
Datum: 15.02.2012 19:51
Betreff: Re: [Pywikipedia-l] problem
> On 15 February 2012 19:43, Bináris <wikiposta(a)gmail.com> wrote:
>
> >
> > 2012/2/15 Andre Engels <andreengels(a)gmail.com>
> >
> >> I guess there should be variation in replag waiting between various
> >> bots, with highly interactive bots not reacting at all, bots with less
> >> interaction only to severe server lag, and bots which are just
> >> switched on, then work interactively slowing down with even moderate
> >> server lag.
> >>
> >
> > This sounds well. Replace.py could also detect the mode and go to sleep
> > easier in automatic mode.
> >
>
> I'd rather see less logic than more logic in bots - less code is less bugs.
> Instead, I'd like to propose a more general solution: a -config command
> line parameter that lets you override *any* configuration parameter in
> user-config.py/config.py, *including* maxlag.
>
> Best,
> Merlijn
>
I agree with Merlijn. A further idea is, we use sth like max(2 * config.maxlag, config.put_throttle) for throttleling with increases the edit time while a higher server replication lag is enabled. Ok this fails by maxlag==0.
Regards
xqt
>