Now the script works, but I still don't understand!<br>I was advised to get the site and a page ad its _getActionUser('block') method. The but ran as BinBott and at _this point_ it asked for my sysop password. I wrote it. After this I ran my blocking script again, and it worked fine!!! But it didn't ask me for the password itself. I try to copy the relevant lines of my script here:<br>
<span style="font-family: courier new,monospace;"> tag=u'Teszteszter'</span><br style="font-family: courier new,monospace;"><span style="font-family: courier new,monospace;"></span><span style="font-family: courier new,monospace;"> user=userlib.User(site,tag)</span><br style="font-family: courier new,monospace;">
<span style="font-family: courier new,monospace;"> if user.block(expiry='infinite', reason=blockmessage):</span><br style="font-family: courier new,monospace;"><span style="font-family: courier new,monospace;"> pywikibot.output(u'%s blokkolva van.' % <a href="http://user.name">user.name</a>())</span><br style="font-family: courier new,monospace;">
<span style="font-family: courier new,monospace;"> else:</span><br style="font-family: courier new,monospace;"><span style="font-family: courier new,monospace;"> pywikibot.output(u'%s blokkolása nem sikerült.' % <a href="http://user.name">user.name</a>())</span><br style="font-family: courier new,monospace;">
<br><div class="gmail_quote">2010/10/23 <span dir="ltr"><<a href="mailto:klaus.seiler@arcor.de">klaus.seiler@arcor.de</a>></span><br><blockquote class="gmail_quote" style="margin: 0pt 0pt 0pt 0.8ex; border-left: 1px solid rgb(204, 204, 204); padding-left: 1ex;">
If you are logged in as BinBot it wouldn't asked for the sysop password. Either log in as sysop or create a new directory and use one for the bot and one for sysop operations.<br>
<br>
Greetings<br>
xqt<br>
----------<br>
<div><div></div><div class="h5">But my config has:<br>
usernames['wikipedia']['hu'] = u'BinBott'<br>
sysopnames['wikipedia']['hu'] = u'Bináris'<br>
Once it is not logged in, it should ask for a password, shouldn't it?<br></div></div></blockquote></div>-- <br>Bináris<br>