Patches item #3455789, was opened at 2011-12-09 14:06
Message generated for change (Comment added) made by nobody
You can respond by visiting:
https://sourceforge.net/tracker/?func=detail&atid=603140&aid=3455789&group_…
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: Accepted
Priority: 5
Private: No
Submitted By: K.-…
[View More]M. Hansche (loxley)
Assigned to: xqt (xqt)
Summary: Fix parenthesis-bug in compileLinkR
Initial Comment:
Textlib.py’s compileLinkR doesn't exlude ( or ) at the end of URLs.
----------------------------------------------------------------------
Comment By: Nobody/Anonymous (nobody)
Date: 2012-02-11 23:28
Message:
TveIV2 <a href="http://rraefuirivim.com/">rraefuirivim</a>,
[url=http://spuuqnhhbgkm.com/]spuuqnhhbgkm[/url],
[link=http://erobuqqymawi.com/]erobuqqymawi[/link],
http://qvvbduunuohi.com/
----------------------------------------------------------------------
Comment By: xqt (xqt)
Date: 2011-12-11 22:12
Message:
done in r9797. thanks
----------------------------------------------------------------------
Comment By: K.-M. Hansche (loxley)
Date: 2011-12-09 14:13
Message:
Update: Opening paranthesis are allowed, closing ones arn’t.
----------------------------------------------------------------------
You can respond by visiting:
https://sourceforge.net/tracker/?func=detail&atid=603140&aid=3455789&group_…
[View Less]
Bugs item #3485880, was opened at 2012-02-08 13:27
Message generated for change (Tracker Item Submitted) made by ganz-ru
You can respond by visiting:
https://sourceforge.net/tracker/?func=detail&atid=603138&aid=3485880&group_…
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: …
[View More]GanZ (ganz-ru)
Assigned to: Nobody/Anonymous (nobody)
Summary: interwiki.py crashes on "Shakti: The Power"
Initial Comment:
interwiki.py recognizes the first word of title of http://en.wikipedia.org/wiki/Shakti:_The_Power as incorrect interlaguage preffix and crashes.
Traceback (most recent call last):
File "interwiki.py", line 2573, in <module>
main()
File "interwiki.py", line 2547, in main
bot.run()
File "interwiki.py", line 2287, in run
self.queryStep()
File "interwiki.py", line 2260, in queryStep
self.oneQuery()
File "interwiki.py", line 2256, in oneQuery
subject.batchLoaded(self)
File "interwiki.py", line 1255, in batchLoaded
redirectTargetPage = page.getRedirectTarget()
File "/usr/pywikipedia/wikipedia.py", line 2612, in getRedirectTarget
return Page(self.site(), target)
File "/usr/pywikipedia/wikipedia.py", line 374, in __init__
% (title, self._site, familyName))
pywikibot.exceptions.NoPage: Shakti: The Power is not a local page on wikipedia:sh, and the shakti family is
not supported by PyWikipediaBot!
version.py:
Pywikipedia [http] trunk/pywikipedia (r9876, 2012/02/08, 21:07:16)
Python 2.7.2+ (default, Oct 4 2011, 20:03:08)
[GCC 4.6.1]
config-settings:
use_api = True
use_api_login = True
unicode test: ok
----------------------------------------------------------------------
You can respond by visiting:
https://sourceforge.net/tracker/?func=detail&atid=603138&aid=3485880&group_…
[View Less]
Bugs item #3484027, was opened at 2012-02-03 13:35
Message generated for change (Tracker Item Submitted) made by nobody
You can respond by visiting:
https://sourceforge.net/tracker/?func=detail&atid=603138&aid=3484027&group_…
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: …
[View More]Nobody/Anonymous (nobody)
Assigned to: Nobody/Anonymous (nobody)
Summary: _getContentsNaive doesn't honour "recurse" parameter
Initial Comment:
--- catlib.py (révision 9851)
+++ catlib.py (copie de travail)
@@ -170,7 +170,12 @@
sortby=sortby, sortdir=sortdir):
yield tag, page
if tag == SUBCATEGORY and recurse:
- for item in page._getContentsNaive(recurse=True,
+ if recurse:
+ if type(recurse) is int:
+ newrecurse = recurse - 1
+ else:
+ newrecurse = recurse
+ for item in page._getContentsNaive(recurse=newrecurse,
sortby=sortby, sortdir=sortdir):
yield item
my version:
guillaume@barbaz:~/src/pywikipedia$ python version.py
Pywikipedia [http] trunk/pywikipedia (r9850, 2012/02/01, 12:21:57)
Python 2.7.1+ (r271:86832, Apr 11 2011, 18:13:53)
[GCC 4.5.2]
config-settings:
use_api = True
use_api_login = True
unicode test: ok
----------------------------------------------------------------------
You can respond by visiting:
https://sourceforge.net/tracker/?func=detail&atid=603138&aid=3484027&group_…
[View Less]
Bugs item #3474195, was opened at 2012-01-15 08:26
Message generated for change (Comment added) made by binbot
You can respond by visiting:
https://sourceforge.net/tracker/?func=detail&atid=603138&aid=3474195&group_…
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: category
Group: None
Status: Open
Resolution: None
Priority: 3
Private: No
Submitted By: xqt (…
[View More]xqt)
Assigned to: Nobody/Anonymous (nobody)
Summary: category.py mistakenty removes not affected categories
Initial Comment:
Pywikipedia trunk/pywikipedia/ (r9826, 2011/10/30, 15:03:29)
Python 2.7.2 (default, Jun 12 2011, 14:24:46) [MSC v.1500 64 bit (AMD64)]
config-settings:
use_api = True
use_api_login = True
unicode test: ok
I found some categories removed on template which are not affected by the command line:
category.py remove -from:Kategorie:Vorlage:mit_Einzelnachweisen
Here is a sample: http://de.wikipedia.org/w/index.php?title=Vorlage%3AInfobox_Gemeindeverband…
cosmetic_changes was switched off.
----------------------------------------------------------------------
Comment By: Bináris (binbot)
Date: 2012-02-02 23:55
Message:
I made some experiments. I think the problem is in textlib.py.
replaceCategoryLinks calls removeCategoryLinksAndSeparator
I suspect that removeCategoryLinksAndSeparator removes these categories but
nobody puts them back because they are not explicitely listed as
categories.
----------------------------------------------------------------------
Comment By: xqt (xqt)
Date: 2012-01-15 11:47
Message:
I changed the behavour of catlib.change_category(). Categories of templates
always are always replaced by wikipedia.replaceCategoryInPlace() rather
than by wikipedia.replaceCategoryLinks().
The bug ist still remainig for some circumstances: Page.categories() gives
categories via api whereas replaceCategoryLinks() works like
wikipedia.getCategoryLinks() which is quite different.
----------------------------------------------------------------------
You can respond by visiting:
https://sourceforge.net/tracker/?func=detail&atid=603138&aid=3474195&group_…
[View Less]
Bugs item #3453028, was opened at 2011-12-06 16:52
Message generated for change (Comment added) made by valhallasw
You can respond by visiting:
https://sourceforge.net/tracker/?func=detail&atid=603138&aid=3453028&group_…
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: …
[View More]Daniel Barrett (djbarrett)
Assigned to: Nobody/Anonymous (nobody)
Summary: Error downloading data: No JSON object could be decoded
Initial Comment:
replace.py produces the following error message in the middle of large search-and-replace operations.
Error downloading data: No JSON object could be decoded: line 1 column 0 (char 0)
Request en:/w/api.php?
Retrying in 1 minutes...
1 minute later, it fails again and retries in 2 minutes, then 4 minutes, etc.
The command was:
$ python replace.py -regex -nocase -start:! '\\\\(example\.net|exampleus)\\common\\softlib' '\\example.net\global\softlib'
and when prompted for a replacement, I typed "a" for "All". After doing a bunch of replacements, the error started happening. This is with MediaWiki 1.17.1.
$ sudo python version.py
Pywikipedia [http] trunk/pywikipedia (r9787, 2011/12/06, 07:41:04)
Python 2.4.3 (#1, May 5 2011, 16:39:10)
[GCC 4.1.2 20080704 (Red Hat 4.1.2-50)]
config-settings:
use_api = True
use_api_login = True
unicode test: ok
----------------------------------------------------------------------
>Comment By: Merlijn S. van Deen (valhallasw)
Date: 2012-02-01 12:30
Message:
Could you re-run the script with -v? This should output the queries used,
and might give relevant information.
On a side note, why are you running pwb (or at least version.py) as root?
There is no reason to do that, and it's dangerous.
----------------------------------------------------------------------
Comment By: Daniel Barrett (djbarrett)
Date: 2012-02-01 11:24
Message:
I am also getting this bug from category.py in -r9851
$ python category.py move -from:"US Payment Processor" -to:"US Payment
Processor project" -pt:0
Happens for some articles not others.
----------------------------------------------------------------------
You can respond by visiting:
https://sourceforge.net/tracker/?func=detail&atid=603138&aid=3453028&group_…
[View Less]
Bugs item #3453028, was opened at 2011-12-06 16:52
Message generated for change (Comment added) made by djbarrett
You can respond by visiting:
https://sourceforge.net/tracker/?func=detail&atid=603138&aid=3453028&group_…
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: Daniel …
[View More]Barrett (djbarrett)
Assigned to: Nobody/Anonymous (nobody)
Summary: Error downloading data: No JSON object could be decoded
Initial Comment:
replace.py produces the following error message in the middle of large search-and-replace operations.
Error downloading data: No JSON object could be decoded: line 1 column 0 (char 0)
Request en:/w/api.php?
Retrying in 1 minutes...
1 minute later, it fails again and retries in 2 minutes, then 4 minutes, etc.
The command was:
$ python replace.py -regex -nocase -start:! '\\\\(example\.net|exampleus)\\common\\softlib' '\\example.net\global\softlib'
and when prompted for a replacement, I typed "a" for "All". After doing a bunch of replacements, the error started happening. This is with MediaWiki 1.17.1.
$ sudo python version.py
Pywikipedia [http] trunk/pywikipedia (r9787, 2011/12/06, 07:41:04)
Python 2.4.3 (#1, May 5 2011, 16:39:10)
[GCC 4.1.2 20080704 (Red Hat 4.1.2-50)]
config-settings:
use_api = True
use_api_login = True
unicode test: ok
----------------------------------------------------------------------
>Comment By: Daniel Barrett (djbarrett)
Date: 2012-02-01 11:24
Message:
I am also getting this bug from category.py in -r9851
$ python category.py move -from:"US Payment Processor" -to:"US Payment
Processor project" -pt:0
Happens for some articles not others.
----------------------------------------------------------------------
You can respond by visiting:
https://sourceforge.net/tracker/?func=detail&atid=603138&aid=3453028&group_…
[View Less]
Bugs item #3474219, was opened at 2012-01-15 10:30
Message generated for change (Settings changed) made by xqt
You can respond by visiting:
https://sourceforge.net/tracker/?func=detail&atid=603138&aid=3474219&group_…
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: Closed
Resolution: Works For Me
Priority: 5
Private: No
Submitted …
[View More]By: Merlijn S. van Deen (valhallasw)
Assigned to: xqt (xqt)
Summary: interwiki.py configuration for plwiktionary
Initial Comment:
http://lists.wikimedia.org/pipermail/pywikipedia-l/2011-May/006802.html
Since Interwicket stopped on wiktionaries, plwiktionary has not a fix interwiki bot. They want the iwikis added at the top of the page, but without creating new lines after the links. Pywikipedia does exactly the opposite, it creates these "new lines". It would be good if someone make a code to change that.
----------------------------------------------------------------------
Comment By: xqt (xqt)
Date: 2012-01-17 21:17
Message:
There is more than one sample of this testings
http://pl.wiktionary.org/w/index.php?title=Wikipedysta:Xqt&diff=prev&oldid=…
----------------------------------------------------------------------
Comment By: André Malafaya Baptista (malafaya)
Date: 2012-01-16 16:25
Message:
Just a note: the example you give only has an interwiki so it's not visible
whether it uses only one line for all interwikis or one per interwiki.
----------------------------------------------------------------------
Comment By: xqt (xqt)
Date: 2012-01-15 12:22
Message:
see version history and test edits at wiktionary:pl:user:xqt
or this diff link
http://pl.wiktionary.org/w/index.php?title=Wikipedysta%3AXqt&action=history…
----------------------------------------------------------------------
Comment By: xqt (xqt)
Date: 2012-01-15 11:50
Message:
We have the two switches in the family file. Time to use it I guess.
# attop is a list of languages that prefer to have the interwiki
# links at the top of the page.
self.interwiki_attop = []
# on_one_line is a list of languages that want the interwiki links
# one-after-another on a single line
self.interwiki_on_one_line = []
----------------------------------------------------------------------
You can respond by visiting:
https://sourceforge.net/tracker/?func=detail&atid=603138&aid=3474219&group_…
[View Less]
Bugs item #1968967, was opened at 2008-05-21 10:52
Message generated for change (Settings changed) made by xqt
You can respond by visiting:
https://sourceforge.net/tracker/?func=detail&atid=603138&aid=1968967&group_…
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: Out of Date
Priority: 5
Private: No
Submitted By:…
[View More] David Crochet (crochet_david)
Assigned to: xqt (xqt)
Summary: no possible deletion with delete user right
Initial Comment:
my bot (Crochet.david.bot) had a Test-administrator group statut (so not the sysop group statut), but this statut have the delete rights (as the sysop group statut) in the incubator wikimedia project.
So, as you can see with the terminal output (attach file)
the bot can't delete.
user rights in incubator : http://incubator.wikimedia.org/wiki/Special:ListGroupRights
----------------------------------------------------------------------
Comment By: xqt (xqt)
Date: 2011-12-29 09:07
Message:
The behavior of the bot has been changed and user rights are read via api
call. We assume default rights but we should use the api results in
general. I guess this could be closed according out of date.
----------------------------------------------------------------------
Comment By: Doug (bewareofdoug)
Date: 2011-12-29 08:00
Message:
Is there a reason the bot checks for particular privileges in the first
place? Can't the bot simply deal with the insufficient privileges response
from the mediawiki software?
----------------------------------------------------------------------
Comment By: Doug (bewareofdoug)
Date: 2011-12-15 04:18
Message:
delete.py works fine, I've recently tested on two non-wmf wikis and could
test on a wmf wiki if we really need to. Cosoleto seems to have pointed to
the problem. Either that or user_config.py was not set up properly.
On the other hand, this points at a real and, I'm fairly certain, ongoing
problem, which is that the bot fails when the bot account has special
rights, such as delete, block, or import, under a userrights group other
than sysop.
----------------------------------------------------------------------
Comment By: Francesco Cosoleto (cosoleto)
Date: 2008-06-12 06:50
Message:
Logged In: YES
user_id=181280
Originator: NO
In wikipedia.py (_getUserData()) try to replace:
if 'sysop' in self._rights[index]:
self._rights[index].extend(['delete', 'undelete', 'block',
'protect', 'import', 'deletedhistory', 'unwatchedpages'])
with:
if 'sysop' in self._rights[index] or 'test-sysop' in
self._rights[index]:
self._rights[index].extend(['delete', 'undelete', 'block',
'protect', 'import', 'deletedhistory', 'unwatchedpages'])
----------------------------------------------------------------------
Comment By: NicDumZ — Nicolas Dumazet (nicdumz)
Date: 2008-05-22 10:35
Message:
Logged In: YES
user_id=1963242
Originator: NO
I'm told by david that wgUserGroups reads
var wgUserGroups = ["bot", "test-sysop", "*", "user", "autoconfirmed"];
on the incubator, meaning that site._rights[1] will be ["bot",
"test-sysop", "user", "autoconfirmed"]
Then, when isAllowed('delete', True), boolean checks " 'delete' in
site._rights[1] ", it returns False, and it raises a LockedPage exception.
David also tells me that his admin user rights (on wikiversity-fr) are "var
wgUserGroups = ["sysop", "*", "user", "autoconfirmed"];". This means that
even with "normal" sysop rights, "delete" is *_never_* in var
wgUserGroups.
I don't have sysop rights on any projects, so I can't really diagnose much
more on this problem, but are we sure that we are still able to delete
pages here ? Isn't somewhat broken ??
----------------------------------------------------------------------
You can respond by visiting:
https://sourceforge.net/tracker/?func=detail&atid=603138&aid=1968967&group_…
[View Less]
Bugs item #3480931, was opened at 2012-01-28 07:44
Message generated for change (Comment added) made by xqt
You can respond by visiting:
https://sourceforge.net/tracker/?func=detail&atid=603138&aid=3480931&group_…
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: Closed
>Resolution: Fixed
Priority: 5
Private: No
Submitted By: …
[View More]MGA73 (mga73)
>Assigned to: xqt (xqt)
Summary: Commonscat.py update for ms-wiki
Initial Comment:
Hi
Commonscat.py needs an update for ms-wiki:
The main template is "Kategori Commons" and the redirects is "Commonscat" and "Commons category",
Other templates are "Commons", "Sisterlinks", "Commonscat-inline" and "Commons cat show2"
Thank you
MGA73
----------------------------------------------------------------------
>Comment By: xqt (xqt)
Date: 2012-02-01 04:22
Message:
done in r9850
----------------------------------------------------------------------
You can respond by visiting:
https://sourceforge.net/tracker/?func=detail&atid=603138&aid=3480931&group_…
[View Less]