Sorry for starting a new thread, I just suscribed.
I ran into the same problem today and I think I know how to fix it.
On userlib.py there are several checks before attempting to raise a block
def block(self, expiry=None, reason=None, anon=True, noCreate=False,
onAutoblock=False,
amir@nightshade:~$ python blockips.py
User name '1.161.100.110' is invalid. IP addresses are not supported.
Traceback (most recent call last):
File blockips.py, line 23, in module
user.block(expiry=one year,reason={{پروکسی باز}},anon=True)
File /home/amir/userlib.py, line 383, in block
Hello
As I know (and I tested) userlib.py doesn't let block IPs. Why did you
that? and How can I block almost thirty thousand IP via PWB?
--
Amir
___
Pywikipedia-l mailing list
Pywikipedia-l@lists.wikimedia.org
On 10 November 2011 13:46, Amir Ladsgroup ladsgr...@gmail.com wrote:
As I know (and I tested) userlib.py doesn't let block IPs
What did you try, and what happened? Did you get any errors? What were they?
Why did you that?
Why do you think there was a specific reason for it? It might very well
It gives me this error:
raise InvalidUser(User name '%s' is invalid. IP addresses are not
supported. % user['name'])
and I think the reason is:
The mediawiki API does not allow IP lookups.
(it's in the userlib.py)
On 11/10/11, Merlijn van Deen valhall...@arctus.nl wrote:
On 10 November 2011
using userlib.py code
you must wait for full of the error code. sorry:(
On 11/10/11, Merlijn van Deen valhall...@arctus.nl wrote:
On 10 November 2011 14:31, Amir Ladsgroup ladsgr...@gmail.com wrote:
It gives me this error:
raise InvalidUser(User name '%s' is invalid. IP addresses are not