Bugs item #1879270, was opened at 2008-01-24 23:04
Message generated for change (Tracker Item Submitted) made by Item Submitter
You can respond by visiting:
https://sourceforge.net/tracker/?func=detail&atid=603138&aid=1879270&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: 9
Private: No
Submitted By: Andre Engels (a_engels)
Assigned to: Nobody/Anonymous (nobody)
Summary: Bot losing text
Initial Comment:
I have had several cases the last few months that the bot, when doing disambiguations, saved only the beginning of the text. Compared to the total number of edits it's not very often (maybe one in 20,000 or so), but it's a serious bug that has gotten people justifiably worried at my bot.
----------------------------------------------------------------------
You can respond by visiting:
https://sourceforge.net/tracker/?func=detail&atid=603138&aid=1879270&group_…
Bugs item #1879122, was opened at 2008-01-24 19:26
Message generated for change (Tracker Item Submitted) made by Item Submitter
You can respond by visiting:
https://sourceforge.net/tracker/?func=detail&atid=603138&aid=1879122&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: other
Group: None
Status: Open
Resolution: None
Priority: 6
Private: No
Submitted By: André Malafaya Baptista (malafaya)
Assigned to: Nobody/Anonymous (nobody)
Summary: Double redirect fixes not coding special characters in EO.WP
Initial Comment:
A user of the Esperanto Wikipedia alerted me to this problem.
The command:
redirect.py -lang:eo double
messes up redirects to articles containing the special character convention in Esperanto sx, cx, ux, etc.. Check this edit made by my bot:
http://eo.wikipedia.org/w/index.php?title=Steindorf&action=edit&oldid=14450…
Instead of using the special character 'Ŝ', it mangles it as 'Sxx' (not even 'Sx'), causing it to be broken (I believe it's even not well interpreted by the Wiki, because 'Sxx' is being rendered as 'Sx').
----------------------------------------------------------------------
You can respond by visiting:
https://sourceforge.net/tracker/?func=detail&atid=603138&aid=1879122&group_…
Bugs item #1877535, was opened at 2008-01-22 20:10
Message generated for change (Comment added) made by rotemliss
You can respond by visiting:
https://sourceforge.net/tracker/?func=detail&atid=603138&aid=1877535&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: Nobody/Anonymous (nobody)
Assigned to: Nobody/Anonymous (nobody)
Summary: Crashing on unexist language
Initial Comment:
Interwiki.py is crashing on projects which does not exist. I hope it skip the page for longer working.
This the output when I'm working on wiktionary:
Getting 1 pages from wiktionary:sco...
Wiki <wikipedia._GetAll object at 0x1441cd0> does not exist yet
Dump ar (wiktionary) saved
Traceback (most recent call last):
File "interwiki.py", line 1609, in ?
bot.run()
File "interwiki.py", line 1384, in run
self.queryStep()
File "interwiki.py", line 1363, in queryStep
subj.finish(self)
File "interwiki.py", line 967, in finish
if self.replaceLinks(page, new, bot):
File "interwiki.py", line 1094, in replaceLinks
qdone = bot.oneQuery()
File "interwiki.py", line 1354, in oneQuery
subject.workDone(self)
File "interwiki.py", line 671, in workDone
iw = page.interwiki()
File "/pywikipedia/wikipedia.py", line 1424, in interwiki
ll = getLanguageLinks(self.get(), insite=self.site(),
File "/pywikipedia/wikipedia.py", line 603, in get
self._contents = self._getEditPage(get_redirect = get_redirect, throttle = throttle, sysop = sysop, nofollow_redirects=nofollow_redirects)
File "/pywikipedia/wikipedia.py", line 659, in _getEditPage
raise NoSuchSite(u'Wiki %s does not exist yet' % self.site())
wikipedia.NoSuchSite: Wiki wiktionary:sco does not exist yet
----------------------------------------------------------------------
>Comment By: Rotem Liss (rotemliss)
Date: 2008-01-24 20:39
Message:
Logged In: YES
user_id=1327030
Originator: NO
The bot checks the languages that are listed in the family file ( + the
ones listed as obsolete), not the ones in user-config.py. It should perhaps
be changed to check all the known languages.
----------------------------------------------------------------------
Comment By: David Crochet (crochet_david)
Date: 2008-01-24 20:35
Message:
Logged In: YES
user_id=1944800
Originator: NO
> About the second comment: I think zh, ie and ca Wikiversities don't
exist,
> do they?
Before, interwiki checked all links interwiki. But now it can verify that
those listed are those from the roster user-config.py
Example:
I have an account on wikiversity (fr, de, es, it, el, and en). If I run
interwiki.py with this page
http://en.wikiversity.org/wiki/Wikiversity:Sandbox it will not check zh
whereas before he did so and remove the link
----------------------------------------------------------------------
Comment By: Rotem Liss (rotemliss)
Date: 2008-01-24 20:00
Message:
Logged In: YES
user_id=1327030
Originator: NO
Displaying a message rather than crashing as of r4934.
About the second comment: I think zh, ie and ca Wikiversities don't exist,
do they?
----------------------------------------------------------------------
Comment By: David Crochet (crochet_david)
Date: 2008-01-23 17:41
Message:
Logged In: YES
user_id=1944800
Originator: NO
Perhaps linked to a correction due to this bug, but since then the
relationship interwiki which there is no account listed in user_config.py
are not verified
Example: in the page wikiversity:es:Plantilla:Traducción
(http://es.wikiversity.org/wiki/Plantilla:Traducci%C3%B3n) linkages between
projects, es, en, el, it and fr are audited (because I have an account on
all these projects), however it does not check the links related to zh, ie
and ca (because they are not in user_config.py).
----------------------------------------------------------------------
You can respond by visiting:
https://sourceforge.net/tracker/?func=detail&atid=603138&aid=1877535&group_…
Bugs item #1877535, was opened at 2008-01-22 19:10
Message generated for change (Comment added) made by crochet_david
You can respond by visiting:
https://sourceforge.net/tracker/?func=detail&atid=603138&aid=1877535&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: Nobody/Anonymous (nobody)
Assigned to: Nobody/Anonymous (nobody)
Summary: Crashing on unexist language
Initial Comment:
Interwiki.py is crashing on projects which does not exist. I hope it skip the page for longer working.
This the output when I'm working on wiktionary:
Getting 1 pages from wiktionary:sco...
Wiki <wikipedia._GetAll object at 0x1441cd0> does not exist yet
Dump ar (wiktionary) saved
Traceback (most recent call last):
File "interwiki.py", line 1609, in ?
bot.run()
File "interwiki.py", line 1384, in run
self.queryStep()
File "interwiki.py", line 1363, in queryStep
subj.finish(self)
File "interwiki.py", line 967, in finish
if self.replaceLinks(page, new, bot):
File "interwiki.py", line 1094, in replaceLinks
qdone = bot.oneQuery()
File "interwiki.py", line 1354, in oneQuery
subject.workDone(self)
File "interwiki.py", line 671, in workDone
iw = page.interwiki()
File "/pywikipedia/wikipedia.py", line 1424, in interwiki
ll = getLanguageLinks(self.get(), insite=self.site(),
File "/pywikipedia/wikipedia.py", line 603, in get
self._contents = self._getEditPage(get_redirect = get_redirect, throttle = throttle, sysop = sysop, nofollow_redirects=nofollow_redirects)
File "/pywikipedia/wikipedia.py", line 659, in _getEditPage
raise NoSuchSite(u'Wiki %s does not exist yet' % self.site())
wikipedia.NoSuchSite: Wiki wiktionary:sco does not exist yet
----------------------------------------------------------------------
Comment By: David Crochet (crochet_david)
Date: 2008-01-24 19:35
Message:
Logged In: YES
user_id=1944800
Originator: NO
> About the second comment: I think zh, ie and ca Wikiversities don't
exist,
> do they?
Before, interwiki checked all links interwiki. But now it can verify that
those listed are those from the roster user-config.py
Example:
I have an account on wikiversity (fr, de, es, it, el, and en). If I run
interwiki.py with this page
http://en.wikiversity.org/wiki/Wikiversity:Sandbox it will not check zh
whereas before he did so and remove the link
----------------------------------------------------------------------
Comment By: Rotem Liss (rotemliss)
Date: 2008-01-24 19:00
Message:
Logged In: YES
user_id=1327030
Originator: NO
Displaying a message rather than crashing as of r4934.
About the second comment: I think zh, ie and ca Wikiversities don't exist,
do they?
----------------------------------------------------------------------
Comment By: David Crochet (crochet_david)
Date: 2008-01-23 16:41
Message:
Logged In: YES
user_id=1944800
Originator: NO
Perhaps linked to a correction due to this bug, but since then the
relationship interwiki which there is no account listed in user_config.py
are not verified
Example: in the page wikiversity:es:Plantilla:Traducción
(http://es.wikiversity.org/wiki/Plantilla:Traducci%C3%B3n) linkages between
projects, es, en, el, it and fr are audited (because I have an account on
all these projects), however it does not check the links related to zh, ie
and ca (because they are not in user_config.py).
----------------------------------------------------------------------
You can respond by visiting:
https://sourceforge.net/tracker/?func=detail&atid=603138&aid=1877535&group_…
Patches item #1878609, was opened at 2008-01-24 03:03
Message generated for change (Settings changed) made by rotemliss
You can respond by visiting:
https://sourceforge.net/tracker/?func=detail&atid=603140&aid=1878609&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: Accepted
Priority: 5
Private: No
Submitted By: AndreasJS (andreasjs)
Assigned to: Nobody/Anonymous (nobody)
Summary: movepages.py -skipredirects
Initial Comment:
New option to skip redirects, useful to prevent excessive creation of redirect pages. This feature is not activated by default because it increases server load as Page.isRedirectPage() calls Page.get().
Add "mark=True" option to Page.delete() to mark obsolete pages by non-admin editors.
----------------------------------------------------------------------
>Comment By: Rotem Liss (rotemliss)
Date: 2008-01-24 20:06
Message:
Logged In: YES
user_id=1327030
Originator: NO
Applied the patch (slightly changed) in r4935.
----------------------------------------------------------------------
You can respond by visiting:
https://sourceforge.net/tracker/?func=detail&atid=603140&aid=1878609&group_…
Revision: 4935
Author: rotem
Date: 2008-01-24 18:05:50 +0000 (Thu, 24 Jan 2008)
Log Message:
-----------
(patch 1878609) Adding -skipredirects option to movepages.py, and after the move, marking the redirect for deletion if requested and no sysop rights are available.
Modified Paths:
--------------
trunk/pywikipedia/movepages.py
Modified: trunk/pywikipedia/movepages.py
===================================================================
--- trunk/pywikipedia/movepages.py 2008-01-24 17:58:27 UTC (rev 4934)
+++ trunk/pywikipedia/movepages.py 2008-01-24 18:05:50 UTC (rev 4935)
@@ -11,7 +11,7 @@
-from and -to The page to move from and the page to move to.
--del After moving the page, delete the redirect.
+-del After moving the page, delete the redirect or mark it for deletion.
-prefix Move pages by adding a namespace prefix to the names of the pages.
(Will remove the old namespace prefix if any)
@@ -19,6 +19,8 @@
-always Don't prompt to make changes, just do them.
+-skipredirects Skip redirect pages (Warning: increases server load)
+
"""
#
# (C) Leonardo Gregianin, 2006
@@ -64,20 +66,21 @@
}
class MovePagesBot:
- def __init__(self, generator, addprefix, delete, always):
+ def __init__(self, generator, addprefix, delete, always, skipredirects):
self.generator = generator
self.addprefix = addprefix
self.delete = delete
self.always = always
+ self.skipredirects = skipredirects
- def moveOne(self, page, newPageTitle,delete):
+ def moveOne(self, page, newPageTitle, delete):
try:
msg = wikipedia.translate(wikipedia.getSite(), summary)
wikipedia.output(u'Moving page %s to [[%s]]' % (page.aslink(), newPageTitle))
if page.move(newPageTitle, msg, throttle=True):
if delete:
deletemsg = wikipedia.translate(wikipedia.getSite(), deletesummary)
- page.delete(deletemsg)
+ page.delete(deletemsg, mark=True)
except wikipedia.NoPage:
wikipedia.output(u'Page %s does not exist!' % page.title())
except wikipedia.IsRedirectPage:
@@ -89,6 +92,9 @@
# Show the title of the page we're working on.
# Highlight the title in purple.
wikipedia.output(u"\n\n>>> \03{lightpurple}%s\03{default} <<<"% page.title())
+ if self.skipredirects and page.isRedirectPage():
+ wikipedia.output(u'Page %s is a redirect; skipping.' % page.title())
+ return
pagetitle = page.titleWithoutNamespace()
namesp = page.site().namespace(page.namespace())
if self.appendAll:
@@ -190,6 +196,7 @@
newName = None
delete = False
always = False
+ skipredirects = False
# This factory is responsible for processing command line arguments
# that are also used by other scripts and that determine on which pages
@@ -201,6 +208,8 @@
delete = True
elif arg == '-always':
always = True
+ if arg == '-skipredirects':
+ skipredirects = True
elif arg.startswith('-from:'):
oldName = arg[len('-from:'):]
elif arg.startswith('-to:'):
@@ -217,11 +226,11 @@
if oldName and newName:
page = wikipedia.Page(wikipedia.getSite(), oldName)
- bot = MovePagesBot(None, prefix, delete, always)
+ bot = MovePagesBot(None, prefix, delete, always, skipredirects)
bot.moveOne(page, newName, delete)
elif gen:
preloadingGen = pagegenerators.PreloadingGenerator(gen)
- bot = MovePagesBot(preloadingGen, prefix, delete, always)
+ bot = MovePagesBot(preloadingGen, prefix, delete, always, skipredirects)
bot.run()
else:
wikipedia.showHelp('movepages')
Bugs item #1877535, was opened at 2008-01-22 20:10
Message generated for change (Comment added) made by rotemliss
You can respond by visiting:
https://sourceforge.net/tracker/?func=detail&atid=603138&aid=1877535&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: Nobody/Anonymous (nobody)
Assigned to: Nobody/Anonymous (nobody)
Summary: Crashing on unexist language
Initial Comment:
Interwiki.py is crashing on projects which does not exist. I hope it skip the page for longer working.
This the output when I'm working on wiktionary:
Getting 1 pages from wiktionary:sco...
Wiki <wikipedia._GetAll object at 0x1441cd0> does not exist yet
Dump ar (wiktionary) saved
Traceback (most recent call last):
File "interwiki.py", line 1609, in ?
bot.run()
File "interwiki.py", line 1384, in run
self.queryStep()
File "interwiki.py", line 1363, in queryStep
subj.finish(self)
File "interwiki.py", line 967, in finish
if self.replaceLinks(page, new, bot):
File "interwiki.py", line 1094, in replaceLinks
qdone = bot.oneQuery()
File "interwiki.py", line 1354, in oneQuery
subject.workDone(self)
File "interwiki.py", line 671, in workDone
iw = page.interwiki()
File "/pywikipedia/wikipedia.py", line 1424, in interwiki
ll = getLanguageLinks(self.get(), insite=self.site(),
File "/pywikipedia/wikipedia.py", line 603, in get
self._contents = self._getEditPage(get_redirect = get_redirect, throttle = throttle, sysop = sysop, nofollow_redirects=nofollow_redirects)
File "/pywikipedia/wikipedia.py", line 659, in _getEditPage
raise NoSuchSite(u'Wiki %s does not exist yet' % self.site())
wikipedia.NoSuchSite: Wiki wiktionary:sco does not exist yet
----------------------------------------------------------------------
>Comment By: Rotem Liss (rotemliss)
Date: 2008-01-24 20:00
Message:
Logged In: YES
user_id=1327030
Originator: NO
Displaying a message rather than crashing as of r4934.
About the second comment: I think zh, ie and ca Wikiversities don't exist,
do they?
----------------------------------------------------------------------
Comment By: David Crochet (crochet_david)
Date: 2008-01-23 17:41
Message:
Logged In: YES
user_id=1944800
Originator: NO
Perhaps linked to a correction due to this bug, but since then the
relationship interwiki which there is no account listed in user_config.py
are not verified
Example: in the page wikiversity:es:Plantilla:Traducción
(http://es.wikiversity.org/wiki/Plantilla:Traducci%C3%B3n) linkages between
projects, es, en, el, it and fr are audited (because I have an account on
all these projects), however it does not check the links related to zh, ie
and ca (because they are not in user_config.py).
----------------------------------------------------------------------
You can respond by visiting:
https://sourceforge.net/tracker/?func=detail&atid=603138&aid=1877535&group_…
Feature Requests item #1876121, was opened at 2008-01-21 03:09
Message generated for change (Comment added) made by rotemliss
You can respond by visiting:
https://sourceforge.net/tracker/?func=detail&atid=603141&aid=1876121&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
Priority: 5
Private: No
Submitted By: Nobody/Anonymous (nobody)
Assigned to: Nobody/Anonymous (nobody)
Summary: FullversionHistory
Initial Comment:
Add revision id and old revision id to the data that FullVersionHistory return ( file wikipedia.py )
----------------------------------------------------------------------
>Comment By: Rotem Liss (rotemliss)
Date: 2008-01-24 19:28
Message:
Logged In: YES
user_id=1327030
Originator: NO
Added revision ID to output in r4932.
----------------------------------------------------------------------
You can respond by visiting:
https://sourceforge.net/tracker/?func=detail&atid=603141&aid=1876121&group_…