https://bugzilla.wikimedia.org/show_bug.cgi?id=55123
Web browser: ---
Bug ID: 55123
Summary: Problems with logging Special pages
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/1666/
Reported by: vicyorus
Created on: 2013-09-04 04:03:19.206000
Subject: Problems with logging Special pages
Original description:
Using pagegenerators.py does not log -unusedfiles or -uncatfiles , which are
found in Special:Unusedfiles and Special:UncategorizedFiles, respectively, on
Wikia.
The script creates a file on the log directory, but it is empty. When using the
script, nothing is printed on the console (which I have been told it should).
--
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=55095
Web browser: ---
Bug ID: 55095
Summary: Change imagerecat.py to use lists in family file
Product: Pywikibot
Version: unspecified
Hardware: All
OS: All
Status: ASSIGNED
Severity: enhancement
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/feature-requests/177/
Reported by: multichill
Created on: 2009-02-13 13:26:33
Subject: Change imagerecat.py to use lists in family file
Assigned to: multichill
Original description:
Imagerecat.py has to be changed to use the redirect template list and the
disambigutation template list in the Commons family file:
self.category\_redirect\_templates = \{
'commons': \(u'Category redirect',
u'Categoryredirect',
u'See cat',
u'Seecat',
u'Catredirect',
u'Cat redirect',
u'CatRed',
u'Cat-red',
u'Catredir',
u'Redirect category'\),
\}
self.disambiguationTemplates = \{
'commons': \[u'Disambig', u'Disambiguation', u'Razločitev',
u'Begriffsklärung'\]
\}
--
You are receiving this mail because:
You are the assignee for the bug.
https://bugzilla.wikimedia.org/show_bug.cgi?id=55025
Web browser: ---
Bug ID: 55025
Summary: Wikidata support
Product: Pywikibot
Version: unspecified
Hardware: All
OS: All
Status: ASSIGNED
Severity: enhancement
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/feature-requests/319/
Reported by: jandudik
Created on: 2012-11-11 20:39:57
Subject: Wikidata support
Assigned to: xqt
Original description:
It would be very useful if bot when updating interwiki links will update \(or
create\) the item on wikidata too.
--
You are receiving this mail because:
You are the assignee for the bug.
https://bugzilla.wikimedia.org/show_bug.cgi?id=55094
Web browser: ---
Bug ID: 55094
Summary: another hint option for interwiki
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/179/
Reported by: Anonymous user
Created on: 2009-02-18 11:49:08
Subject: another hint option for interwiki
Original description:
May we have a cross-namespace hint option, let's say -hintmain?
If, for example, a category doesn't have interwiki links but we have the main
article with the same title, we might want to use interwiki links from that
article as hints for the category. That would be helpful e.g. for many
'scientific' categories - plants, animals, etc.
--
You are receiving this mail because:
You are the assignee for the bug.
https://bugzilla.wikimedia.org/show_bug.cgi?id=55224
Web browser: ---
Bug ID: 55224
Summary: Wrong language with a one-site family can yield
confusing er
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/1390/
Reported by: valhallasw
Created on: 2012-01-07 00:10:07
Subject: Wrong language with a one-site family can yield confusing er
Original description:
valhallasw@dorthonion:~/src/pywikipedia/trunk$ python version.py
Pywikipedia \[http\] trunk/pywikipedia \(r9820, 2011/12/29, 12:08:55\)
Python 2.6.5 \(r265:79063, Apr 16 2010, 13:09:56\)
\[GCC 4.4.3\]
config-settings:
use\_api = True
use\_api\_login = True
unicode test: ok
valhallasw@dorthonion:~/src/pywikipedia/trunk$ cat user-config.py
mylang='de'
site='botwiki'
usernames\['botwiki'\]\['de'\] = u'valhallasw'
valhallasw@dorthonion:~/src/pywikipedia/trunk$ python generate\_family\_file.py
http://botwiki.sno.cc/wiki/Main\_Page botwiki
Generating family file from http://botwiki.sno.cc/wiki/Main\_Page
==================================
api url: http://botwiki.sno.cc/w/api.php
MediaWiki version: 1.17.0
==================================
Determining other languages...
Loading wikis...
\* en... in cache
Retrieving namespaces... en
Writing families/botwiki\_family.py...
families/botwiki\_family.py already exists. Overwrite? \(y/n\)y
valhallasw@dorthonion:~/src/pywikipedia/trunk$ python login.py
Traceback \(most recent call last\):
File "login.py", line 436, in <module>
main\(\)
File "login.py", line 431, in main
loginMan = LoginManager\(password, sysop = sysop, verbose=verbose\)
File "login.py", line 106, in \_\_init\_\_
raise pywikibot.NoUsername\(u'ERROR: Username for %s:%s is undefined.\nIf you
have an account for that site, please add such a line to
user-config.py:\n\nusernames\[\'%s\'\]\[\'%s\'\] = \'myUsername\'' %
\(self.site.family.name, self.site.lang, self.site.family.name,
self.site.lang\)\)
pywikibot.exceptions.NoUsername: ERROR: Username for botwiki:botwiki is
undefined.
If you have an account for that site, please add such a line to user-config.py:
usernames\['botwiki'\]\['botwiki'\] = 'myUsername'
however, the correct error message would be
valhallasw@dorthonion:~/src/pywikipedia/trunk$ python login.py
Traceback \(most recent call last\):
File "login.py", line 436, in <module>
main\(\)
File "login.py", line 431, in main
loginMan = LoginManager\(password, sysop = sysop, verbose=verbose\)
File "login.py", line 106, in \_\_init\_\_
raise pywikibot.NoUsername\(u'ERROR: Username for %s:%s is undefined.\nIf you
have an account for that site, please add such a line to
user-config.py:\n\nusernames\[\'%s\'\]\[\'%s\'\] = \'myUsername\'' %
\(self.site.family.name, self.site.lang, self.site.family.name,
self.site.lang\)\)
pywikibot.exceptions.NoUsername: ERROR: Username for botwiki:botwiki is
undefined.
If you have an account for that site, please add such a line to user-config.py:
usernames\['botwiki'\]\['en'\] = 'myUsername'
--
You are receiving this mail because:
You are the assignee for the bug.
https://bugzilla.wikimedia.org/show_bug.cgi?id=64880
Bug ID: 64880
Summary: Port speedy_delete.py to core
Product: Pywikibot
Version: core (2.0)
Hardware: All
OS: All
Status: NEW
Severity: normal
Priority: Unprioritized
Component: General
Assignee: Pywikipedia-bugs(a)lists.wikimedia.org
Reporter: valhallasw(a)arctus.nl
Blocks: 55880
Web browser: ---
Mobile Platform: ---
--
You are receiving this mail because:
You are the assignee for the bug.
https://bugzilla.wikimedia.org/show_bug.cgi?id=55304
Web browser: ---
Bug ID: 55304
Summary: unnecessary blank line by cosmetic_changes.py for
pl-wiki
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/961/
Reported by: patrol
Created on: 2009-06-19 14:02:30
Subject: unnecessary blank line by cosmetic_changes.py for pl-wiki
Original description:
Pywikipedia \[http\] trunk/pywikipedia \(r6972, Jun 19 2009, 07:20:57\)
Python 2.6.2 \(r262:71600, Apr 21 2009, 15:05:37\) \[MSC v.1500 32 bit
\(Intel\)\]
during the bot operation \(cosmetic\_changes.py\) is added blank line between a
DEFAULTSORT template and categories which is unnecessary for pl-wiki
see edit of bot:
http://pl.wikipedia.org/w/index.php?title=Elle\_Macpherson&diff=17417260&ol…
and correction made by local WP:SK:
http://pl.wikipedia.org/w/index.php?title=Elle\_Macpherson&diff=17476463&ol…
Polish community will be grateful if you take this into account and correct
--
You are receiving this mail because:
You are the assignee for the bug.