https://bugzilla.wikimedia.org/show_bug.cgi?id=55184
Web browser: ---
Bug ID: 55184
Summary: replace doesn't support optional groups
Product: Pywikibot
Version: unspecified
Hardware: All
OS: All
Status: NEW
Severity: normal
Priority: Unprioritized
Component: General
Assignee: Pywikipedia-bugs(a)lists.wikimedia.org
Reporter: legoktm.wikipedia(a)gmail.com
Classification: Unclassified
Mobile Platform: ---
Originally from: http://sourceforge.net/p/pywikipediabot/bugs/1484/
Reported by: Anonymous user
Created on: 2012-07-02 13:25:23
Subject: replace doesn't support optional groups
Original description:
textlib.py \(method replaceExcept\) doesn't support optional capturing groups
in regex.
I tried to run replace.py with the following regex: "RISHMI\(T |IM\)?" =>
"RISHMI\1"
when running it on a page containing the following text "SOMETHING RISHMI
SOMETHING"
it crashes with the following error:
textlib.py, line 178, in replaceExcept
match.group\(groupID\) + \
TypeError: coercing to Unicode: need string or buffer, NoneType found
line 178 contains the statement:
replacement = replacement\[:groupMatch.start\(\)\] + \
match.group\(groupID\) + \
replacement\[groupMatch.end\(\):\]
textlib.py should check for match.group\(groupID\) ==None and if so, add here
empty string instead of match.group\(groupID\)
--
You are receiving this mail because:
You are the assignee for the bug.
https://bugzilla.wikimedia.org/show_bug.cgi?id=55103
Web browser: ---
Bug ID: 55103
Summary: intwerwiki to non existing anchor
Product: Pywikibot
Version: unspecified
Hardware: All
OS: All
Status: NEW
Severity: enhancement
Priority: Unprioritized
Component: interwiki.py
Assignee: Pywikipedia-bugs(a)lists.wikimedia.org
Reporter: legoktm.wikipedia(a)gmail.com
Classification: Unclassified
Mobile Platform: ---
Originally from: http://sourceforge.net/p/pywikipediabot/feature-requests/145/
Reported by: Anonymous user
Created on: 2008-05-02 12:52:51
Subject: intwerwiki to non existing anchor
Original description:
Please, add possibility to give interwiki link to anchor whis is not one of
headers of article.
Example:
There are articles Microsoft .NET and .NET Framework in several languages, but
in en: is only .NET Framework.
But some people repeatly add link to .NET Framework to the second group of
articles.
If there is link \[\[en:.NET\_Framework\#top\]\], it works correctly for
browser, but bot wants to remove this link
--
You are receiving this mail because:
You are the assignee for the bug.
https://bugzilla.wikimedia.org/show_bug.cgi?id=52692
--- Comment #31 from Nemo <federicoleva(a)tiscali.it> ---
By the way Legoktm you're a crazy martyr, why didn't you use an alternate
account for filing? :O Luckily with 5.0 you'll be able to ignore all those bugs
when you get tired of them https://bugzilla.mozilla.org/show_bug.cgi?id=148564
--
You are receiving this mail because:
You are on the CC list for the bug.
https://bugzilla.wikimedia.org/show_bug.cgi?id=52692
Nemo <federicoleva(a)tiscali.it> changed:
What |Removed |Added
----------------------------------------------------------------------------
CC| |federicoleva(a)tiscali.it
--- Comment #30 from Nemo <federicoleva(a)tiscali.it> ---
(In reply to comment #27)
> I have a 1.6MB debug log file if anyone wants ;-)
Any private information in there? If not, please attach it here for reference.
--
You are receiving this mail because:
You are on the CC list for the bug.
https://bugzilla.wikimedia.org/show_bug.cgi?id=52692
Merlijn van Deen <valhallasw(a)arctus.nl> changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|RESOLVED |REOPENED
Resolution|FIXED |---
--- Comment #29 from Merlijn van Deen <valhallasw(a)arctus.nl> ---
One last thing that would be nice: could we get a version selector, to select
between 'core (2.0)', 'compat (1.0)' and 'unspecified'?
--
You are receiving this mail because:
You are on the CC list for the bug.
https://bugzilla.wikimedia.org/show_bug.cgi?id=52692
--- Comment #28 from Andre Klapper <aklapper(a)wikimedia.org> ---
Thanks everybody, great work!
--
You are receiving this mail because:
You are on the CC list for the bug.
https://bugzilla.wikimedia.org/show_bug.cgi?id=52692
Kunal Mehta (Legoktm) <legoktm.wikipedia(a)gmail.com> changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|ASSIGNED |RESOLVED
Resolution|--- |FIXED
--- Comment #27 from Kunal Mehta (Legoktm) <legoktm.wikipedia(a)gmail.com> ---
Done!
I sent an email to the list as well:
http://lists.wikimedia.org/pipermail/pywikipedia-l/2013-October/008393.html
I have a 1.6MB debug log file if anyone wants ;-)
--
You are receiving this mail because:
You are on the CC list for the bug.
https://bugzilla.wikimedia.org/show_bug.cgi?id=55258
Web browser: ---
Bug ID: 55258
Summary: API hookaborted by pagefromfile.py
Product: Pywikibot
Version: unspecified
Hardware: All
OS: All
Status: NEW
Severity: normal
Priority: Unprioritized
Component: General
Assignee: Pywikipedia-bugs(a)lists.wikimedia.org
Reporter: legoktm.wikipedia(a)gmail.com
Classification: Unclassified
Mobile Platform: ---
Originally from: http://sourceforge.net/p/pywikipediabot/bugs/1247/
Reported by: masti01
Created on: 2010-10-08 20:20:37
Subject: API hookaborted by pagefromfile.py
Original description:
When I try to add pages using pagefromfile.py edits are aborted with:
Unknown Error. API Error code:hookaborted
Information:The modification you tried to make was aborted by an extension hook
example:
>python pagefromfile.py -file:nepaldystryktredir -start:"HHH" -end:"HHH"
-notitle -summary:"Bot dodaje alternatywne nazwy dystryktów Nepalu"Reading
'nepaldystryktredir'...
>>> Bardia \(dystrykt\) <<<
NOTE: You have new messages on wikipedia:pl
Sleeping for 7.5 seconds, 2010-10-08 22:16:41
Creating page \[\[Bardia \(dystrykt\)\]\] via API
Unknown Error. API Error code:hookaborted
Information:The modification you tried to make was aborted by an extension hook
>python version.py
Pywikipedia \[http\] trunk/pywikipedia \(r8623, 2010/10/08, 15:28:12\)
Python 2.6.4 \(r264:75706, Jun 4 2010, 18:20:16\)
\[GCC 4.4.4 20100503 \(Red Hat 4.4.4-2\)\]
config-settings:
use\_api = True
use\_api\_login = True
--
You are receiving this mail because:
You are the assignee for the bug.
https://bugzilla.wikimedia.org/show_bug.cgi?id=55317
Web browser: ---
Bug ID: 55317
Summary: [[Special:Export]] not retrieving zh-traditional
titles
Product: Pywikibot
Version: unspecified
Hardware: All
OS: All
Status: NEW
Severity: normal
Priority: Unprioritized
Component: interwiki.py
Assignee: Pywikipedia-bugs(a)lists.wikimedia.org
Reporter: legoktm.wikipedia(a)gmail.com
Classification: Unclassified
Mobile Platform: ---
Originally from: http://sourceforge.net/p/pywikipediabot/bugs/793/
Reported by: eugo
Created on: 2008-09-14 09:46:06
Subject: [[Special:Export]] not retrieving zh-traditional titles
Original description:
Pywikipedia \[http\] trunk/pywikipedia \(r5894, Sep 13 2008, 17:27:38\)
Python 2.4.4 \(\#2, Apr 15 2008, 23:43:20\)
\[GCC 4.1.2 20061115 \(prerelease\) \(Debian 4.1.1-21\)\]
Hello,
my bot checked ru:Домашних духов обманув, душа Цянь-нюй расстаётся с телом on
ru-WP for interwiki links and found an invalid link to zh-WP and removed it.
But this link is valid as you can see. Why does this happen?
Best regards,
Euku
\-----
python interwiki.py
"-start:%D0%94%D0%BE%D0%BC%D0%B0%D1%88%D0%BD%D0%B8%D1%85\_%D0%B4%D1%83%D1%85%D0%BE%D0%B2\_%D0%BE%D0%B1%D0%BC%D0%B0%D0%BD%D1%83%D0%B2,\_%D0%B4%D1%83%D1%88%D0%B0\_%D0%A6%D1%8F%D0%BD%D1%8C-%D0%BD%D1%8E%D0%B9\_%D1%80%D0%B0%D1%81%D1%81%D1%82%D0%B0%D1%91%D1%82%D1%81%D1%8F\_%D1%81\_%D1%82%D0%B5%D0%BB%D0%BE%D0%BC"
"-number:1" -lang:ru
Checked for running processes. 1 processes currently running, including the
current process.
NOTE: Number of pages queued is 0, trying to add 60 more.
Getting 1 pages from wikipedia:ru...
Getting 1 pages from wikipedia:zh...
NOTE: \[\[zh:????\]\] does not exist
======Post-processing \[\[ru:Domashnikh dukhov obmanuv, dusha Cyan'-nyuj
rasstaëtsya s telom\]\]======
Updating links on page \[\[ru:Domashnikh dukhov obmanuv, dusha Cyan'-nyuj
rasstaëtsya s telom\]\].
Changes to be made: udalil: \[\[zh:????\]\]
\- \[\[zh:????\]\]
ERROR: Found incorrect link to zh in \[\[ru:Domashnikh dukhov obmanuv, dusha
Cyan'-nyuj rasstaëtsya s telom\]\]
Submit? \(\[y\]es, \[n\]o, \[g\]ive up\)
--
You are receiving this mail because:
You are the assignee for the bug.
https://bugzilla.wikimedia.org/show_bug.cgi?id=55311
Web browser: ---
Bug ID: 55311
Summary: -weblink case sensitive
Product: Pywikibot
Version: unspecified
Hardware: All
OS: All
Status: NEW
Severity: normal
Priority: Unprioritized
Component: General
Assignee: Pywikipedia-bugs(a)lists.wikimedia.org
Reporter: legoktm.wikipedia(a)gmail.com
Classification: Unclassified
Mobile Platform: ---
Originally from: http://sourceforge.net/p/pywikipediabot/bugs/861/
Reported by: platonides
Created on: 2009-02-18 15:49:13
Subject: -weblink case sensitive
Original description:
If you do use -weblink with an upper case parameter \(or lowercase if the links
are uppercase at the wiki\), it treats the link as a page. Eg. for
-weblink:\*.COM and \[u'http://www.example.com', u'Foo'\] it outputs:
Page \[\[Http://www.example.com\]\] not found
No changes were necessary in \[\[Foo\]\]
Running r6366. Python 2.5.1
--
You are receiving this mail because:
You are the assignee for the bug.