In userlib.py, under the header:
def block(self, expiry = None, reason = None, anon= True, noCreate =
False,
onAutoblock = False, banMail = False, watchUser = False,
allowUsertalk = True,
reBlock = False):
the given parameters in comment are outdated. (Inconsistent
Oh, I cannot give the block, poor vandal!
THIS is a bug:
File C:\Program Files\Pywikipedia\userlib.py, line 377, in block
self.site()._getActionUser('block', sysop=True)
AttributeError: 'Site' object has no attribute '_getActionUser'
--
Bináris
The idea is to create a user page and a talk page for a blocked user with a
template, and immediately after creating to protect them.
The bot creates the pages and gives an error:
Creating page [[Szerkesztö:SZDSZ]] via API
Sleeping for 6.7 seconds, 2010-08-19 23:04:37
Creating page
2010/8/19 Bináris wikipo...@gmail.com
I tried to change the order of script lines: first protection, and saving
afterwards. This works! But this way the bot creates the pages under my
sysop name, because they are already protected.
... and removes the protection, becuse protection was only