https://bugzilla.wikimedia.org/show_bug.cgi?id=54562
Web browser: ---
Bug ID: 54562
Summary: Bugfix for optional caputring group
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/patches/555/
Reported by: eranroz
Created on: 2012-07-03 18:35:29
Subject: Bugfix for optional caputring group
Original description:
Patch for pywikibot/textlib.py for the replace function \(replaceExcept\) for
supporting for empty/optional capturing groups.
This is a bugfix for a crash that occur when using replace.py with a regex
containing optional capturing group \(eg AAA in this regex "bla\(AAA\)?bla" \)
--
You are receiving this mail because:
You are the assignee for the bug.
https://bugzilla.wikimedia.org/show_bug.cgi?id=54567
Web browser: ---
Bug ID: 54567
Summary: Minor improvements on add_text.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/patches/537/
Reported by: phoenixca
Created on: 2012-01-21 20:06:11
Subject: Minor improvements on add_text.py
Original description:
Added an open in browser option to confirmation dialogue \(similar to
replace.py \) and added a new -only arg \(essentially the opposite of
-except\). If a page text doesn't match the -only regex given, it skips.
Example use:
I added this while trying to clean-up a Wikia wiki. Wikia's RTE leaves
\[\[File:Placeholder on pages often. With this addition, the bot can use
-only:"\[\[File:Placeholder" -except:"\{\{image\}\}" -text:"\{\{image\}\}" -up
, to add a meta tag to pages that have image placeholders, but not ones that
already have the \{\{image\}\} tag.
--
You are receiving this mail because:
You are the assignee for the bug.
https://bugzilla.wikimedia.org/show_bug.cgi?id=54559
Web browser: ---
Bug ID: 54559
Summary: images' license checker
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/patches/563/
Reported by: rubin16
Created on: 2012-08-20 16:43:17
Subject: images' license checker
Original description:
license checker bot - created by Panther and patched by me and xqt. It was
designed for ru.wiki \(and uk.wiki partially\) but I suppose that some ideas
will be useful for other wikis.
Note: not all pagegenerators are working in the script, it should be somehow
corrected or rewritten. Original author \(Panther\) agreed to license it under
MIT license
Script was tested and works in ru.wiki for quite extended period of time with
no objections -
http://ru.wikipedia.org/wiki/%D0%A1%D0%BB%D1%83%D0%B6%D0%B5%D0%B1%D0%BD%D0%…
--
You are receiving this mail because:
You are the assignee for the bug.
https://bugzilla.wikimedia.org/show_bug.cgi?id=54548
Web browser: ---
Bug ID: 54548
Summary: _getUserDataOld call from low-level getUrl
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/patches/608/
Reported by: valhallasw
Created on: 2013-04-13 20:51:59
Subject: _getUserDataOld call from low-level getUrl
Original description:
From
http://lists.wikimedia.org/pipermail/pywikipedia-l/2012-October/007585.html :
I just wanted to put\(\) a simple page on a MediaWiki 1.16
instance, where I have to use screen scraping \(use\_api=False\).
There is something strange however:
There is an API call invoked by \_getBlocked:
/w/api.php?action=query&format=json&meta=userinfo&uiprop=blockinfo
Here's my backtrace:
File "pywikipedia/wikipedia.py", line 693, in get
expandtemplates = expandtemplates\)
File "pywikipedia/wikipedia.py", line 743, in \_getEditPage
return self.\_getEditPageOld\(get\_redirect, throttle, sysop, oldid,
change\_edit\_time\)
File "pywikipedia/wikipedia.py", line 854, in \_getEditPageOld
text = self.site\(\).getUrl\(path, sysop = sysop\)
File "pywikipedia/wikipedia.py", line 5881, in getUrl
self.\_getUserDataOld\(text, sysop = sysop\)
File "pywikipedia/wikipedia.py", line 6016, in \_getUserDataOld
blocked = self.\_getBlock\(sysop = sysop\)
File "pywikipedia/wikipedia.py", line 5424, in \_getBlock
data = query.GetData\(params, self\)
File "pywikipedia/query.py", line 146, in GetData
jsontext = site.getUrl\( path, retry=True, sysop=sysop, data=data\)
getUrl\(\), which is also called from API, seems always
to call \_getUserDataOld\(text\) where text is ... API output
so it tries to do strange things on that and gives warnings
like
Note: this language does not allow global bots.
WARNING: Token not found on wikipedia:pl. You will not be able to edit any
page.
which is nonsense since the analyzed text is not HTML - only API output.
If getUrl\(\) is supposed to be a low-level call, why call \_getUserDataOld\(\)
there?
http://www.mediawiki.org/wiki/Special:Code/pywikipedia/7461
has introduced this call there.
It's easily reproducable by this:
import wikipedia
import config
config.use\_api = False
wikipedia.verbose = True
s = wikipedia.getSite\("pl", "wikipedia"\)
p = wikipedia.Page\(s, u"User:Saper"\)
c = p.get\(\)
c += "<\!-- test -->"
p.put\(c, u"Testing wiki", botflag=False\)
//Saper
--
You are receiving this mail because:
You are the assignee for the bug.
https://bugzilla.wikimedia.org/show_bug.cgi?id=54551
Web browser: ---
Bug ID: 54551
Summary: weblinkchecker exclude webarchive
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/patches/592/
Reported by: masti01
Created on: 2013-01-31 09:16:41
Subject: weblinkchecker exclude webarchive
Original description:
Exclude webArchive from checked links as this is already archived
--
You are receiving this mail because:
You are the assignee for the bug.
https://bugzilla.wikimedia.org/show_bug.cgi?id=54561
Web browser: ---
Bug ID: 54561
Summary: lonely pages as an handlearg
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/patches/559/
Reported by: nickanc
Created on: 2012-08-04 19:31:11
Subject: lonely pages as an handlearg
Original description:
This is the first time I make edits to pagegenerators.py. I added a new
parameter -lonelypages:n to work on lonely pages. :\)
--
You are receiving this mail because:
You are the assignee for the bug.
https://bugzilla.wikimedia.org/show_bug.cgi?id=54738
Web browser: ---
Bug ID: 54738
Summary: Implement a UnconnectedPages generator in Pywikipedia
Product: Pywikibot
Version: unspecified
Hardware: All
URL: https://en.wikipedia.org/wiki/Special:UnconnectedPages
OS: All
Status: NEW
Severity: normal
Priority: Unprioritized
Component: Wikidata
Assignee: Pywikipedia-bugs(a)lists.wikimedia.org
Reporter: maarten(a)mdammers.nl
Depends on: 49137
Classification: Unclassified
Mobile Platform: ---
To get pages from for example
https://en.wikipedia.org/wiki/Special:UnconnectedPages . No api yet, so that
blocks this one
--
You are receiving this mail because:
You are the assignee for the bug.
https://bugzilla.wikimedia.org/show_bug.cgi?id=54570
Web browser: ---
Bug ID: 54570
Summary: Working with interwikis on subpage
Product: Pywikibot
Version: unspecified
Hardware: All
OS: All
Status: ASSIGNED
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/patches/497/
Reported by: dixond
Created on: 2010-12-29 13:55:59
Subject: Working with interwikis on subpage
Assigned to: xqt
Original description:
I think I implemented my feature request with ID: 3146291
Please, review carefully my code - to be honest I don't have really much
experience with Python.
And few moments:
1\) When we adding/fixing interwikis on subpage, I think we should remove
interwikis in template itself if any
2\) It seems that logic of determing whether this page has subpages, getting
interwikis also from included subpages etc should be decoupled from
interwiki.py and moved to wikipedia.py
3\) Not really related but.. cosmetic\_changes.py removes interwikis from
subpage.
--
You are receiving this mail because:
You are the assignee for the bug.
https://bugzilla.wikimedia.org/show_bug.cgi?id=54686
Web browser: ---
Bug ID: 54686
Summary: version.py does not work properly for SVN working
copies
Product: Pywikibot
Version: unspecified
Hardware: All
OS: All
Status: NEW
Severity: major
Priority: Unprioritized
Component: General
Assignee: Pywikipedia-bugs(a)lists.wikimedia.org
Reporter: info(a)gno.de
Classification: Unclassified
Mobile Platform: ---
version.py gives a unsufficient result if the working copy is SVN based from
github:
C:\pwb\compat>version.py
Pywikipedia wikipedia.py (r-1 (unknown), ???????, 2013/09/19, 07:37:28,
OUTDATED
)
Python 2.7.3 (default, Apr 10 2012, 23:24:47) [MSC v.1500 64 bit (AMD64)]
config-settings:
use_api = True
use_api_login = True
unicode test: ok
C:\pwb\compat>
--
You are receiving this mail because:
You are the assignee for the bug.
https://bugzilla.wikimedia.org/show_bug.cgi?id=54540
Web browser: ---
Bug ID: 54540
Summary: Allow specifying a custom site in GeneratorFactory
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/patches/622/
Reported by: gallaecio
Created on: 2013-08-03 20:32:41.962000
Subject: Allow specifying a custom site in GeneratorFactory
Original description:
--
You are receiving this mail because:
You are the assignee for the bug.