[Pywikipedia-l] [ pywikipediabot-Bugs-1865598 ] Unable to use framework when IP is blocked
SourceForge.net
noreply at sourceforge.net
Thu Jan 17 01:03:16 UTC 2008
Bugs item #1865598, was opened at 2008-01-06 18:34
Message generated for change (Comment added) made by nobody
You can respond by visiting:
https://sourceforge.net/tracker/?func=detail&atid=603138&aid=1865598&group_id=93107
Please note that this message will contain a full copy of the comment thread,
including the initial issue submission, for this request,
not just the latest update.
Category: None
Group: None
Status: Open
Resolution: None
Priority: 5
Private: No
Submitted By: Nobody/Anonymous (nobody)
Assigned to: Nobody/Anonymous (nobody)
Summary: Unable to use framework when IP is blocked
Initial Comment:
I am unable to log myself or my bot in when my IP is blocked. See traceback:
matt at oak:~/pywiki$ python login.py
Checked for running processes. 1 processes currently running, including the current process.
Password for user MonoBot on wikipedia:en:
Logging in to wikipedia:en as MonoBot
Traceback (most recent call last):
File "login.py", line 277, in ?
main()
File "login.py", line 273, in main
loginMan.login()
File "login.py", line 220, in login
if not self.botAllowed():
File "login.py", line 91, in botAllowed
for linkedPage in botListPage.linkedPages():
File "/home/matt/pywiki/wikipedia.py", line 1473, in linkedPages
thistxt = removeLanguageLinks(self.get(get_redirect=True),
File "/home/matt/pywiki/wikipedia.py", line 600, in get
self._contents = self._getEditPage(get_redirect = get_redirect, throttle = throttle, sysop = sysop, nofollow_redirects=nofollow_redirects)
File "/home/matt/pywiki/wikipedia.py", line 707, in _getEditPage
raise UserBlocked(self.site(), self.aslink(forceInterwiki = True))
wikipedia.UserBlocked: (wikipedia:en, u'[[en:Wikipedia:Registered bots]]')
matt at oak:~/pywiki$ python login.py
Checked for running processes. 1 processes currently running, including the current process.
Password for user Monobi on wikipedia:en:
Logging in to wikipedia:en as Monobi
Traceback (most recent call last):
File "login.py", line 277, in ?
main()
File "login.py", line 273, in main
loginMan.login()
File "login.py", line 220, in login
if not self.botAllowed():
File "login.py", line 91, in botAllowed
for linkedPage in botListPage.linkedPages():
File "/home/matt/pywiki/wikipedia.py", line 1473, in linkedPages
thistxt = removeLanguageLinks(self.get(get_redirect=True),
File "/home/matt/pywiki/wikipedia.py", line 600, in get
self._contents = self._getEditPage(get_redirect = get_redirect, throttle = throttle, sysop = sysop, nofollow_redirects=nofollow_redirects)
File "/home/matt/pywiki/wikipedia.py", line 707, in _getEditPage
raise UserBlocked(self.site(), self.aslink(forceInterwiki = True))
wikipedia.UserBlocked: (wikipedia:en, u'[[en:Wikipedia:Registered bots]]')
----------------------------------------------------------------------
Comment By: Nobody/Anonymous (nobody)
Date: 2008-01-16 17:03
Message:
Logged In: NO
The aim of the block in this case is to prevent misuse of the IP, not to
stop all use.
The actions being restricted by the block are 1/ use without logging in,
or 2/ account creation, as I understand it. It's not intended to prevent
use of an account that's pre-existing or sysop-created.
Agree that this is unusual :)
----------------------------------------------------------------------
Comment By: Rotem Liss (rotemliss)
Date: 2008-01-06 22:43
Message:
Logged In: YES
user_id=1327030
Originator: NO
However, you may mean only the IP address is blocked, not the user
account. In such case, you get an exception without being actually blocked.
To prevent that, I moved the check (if you are allowed to run the bot)
after the actual login in r4824, so you only get the exception if your
account is blocked.
----------------------------------------------------------------------
Comment By: Rotem Liss (rotemliss)
Date: 2008-01-06 22:36
Message:
Logged In: YES
user_id=1327030
Originator: NO
You shouldn't be able to use the bot at all while blocked - please ask a
sysop why are you blocked and ask for unblocking. It may, however, be
possible to enforce that only for actual edits, and only show a warning
when getting pages. (Note that some older MediaWiki versions don't allow
you to get the edit page while blocked, but this doesn't apply to Wikimedia
sites.)
----------------------------------------------------------------------
You can respond by visiting:
https://sourceforge.net/tracker/?func=detail&atid=603138&aid=1865598&group_id=93107
More information about the Pywikipedia-l
mailing list