Bugs item #1891058, was opened at 2008-02-11 11:26
Message generated for change (Comment added) made by carsrac
You can respond by visiting:
https://sourceforge.net/tracker/?func=detail&atid=603138&aid=1891058&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: Purodha B Blissenbach (purodha)
Assigned to: Nobody/Anonymous (nobody)
Summary: interwiki.py does not recognize all disambiguation pages.
Initial Comment:
There is a problem with recognition of disambiguation pages in interwiki.py
Look at these:
$
python interwiki.py -putthrottle:33 -initialredirect -confirm ...And Justice for All
Getting 1 pages from wikipedia:ksh...
NOTE: [[ksh:...And Justice for All]] is redirect to [[ksh:...And Justice for All (Watt eßß datt?)]]
[[...And Justice for All (Watt eßß datt?)]]: [[ksh:...And Justice for All (Watt eßß datt?)]] gives new interwiki [[nl:...And Justice for All]]
(some "new interwiki" messages left out)
Getting 1 pages from wikipedia:nl...
WARNING: [[ksh:...And Justice for All (Watt eßß datt?)]] doesn't seem to be a disambiguation page, but [[nl:...And Justice for All]] is one. Follow it anyway? ([y]es, [n]o, [a]dd an alternative) y
In fact, [[ksh:...And Justice for All]] is a redirect, and not a disambiguation, but the redirect target [[ksh:...And Justice for All (Watt eßß datt?)]] is a disambiguation page. Only interwiki.py seems not to have recognized that.
Maybe, the problem is related to the -initialredirect directive here, but that is a mere guess.
----------------------------------------------------------------------
Comment By: Carsrac (carsrac)
Date: 2008-06-03 23:14
Message:
Logged In: YES
user_id=2066902
Originator: NO
You can safely ignore my comments and close it. It looks like I made
comments that where needed be placed somewhere else.
----------------------------------------------------------------------
Comment By: siebrand (siebrand)
Date: 2008-06-03 00:47
Message:
Logged In: YES
user_id=1107255
Originator: NO
Please let us know if this issue has been resolved. If there is no reply,
this issue will be closed in 2 weeks.
----------------------------------------------------------------------
Comment By: Carsrac (carsrac)
Date: 2008-05-25 08:35
Message:
Logged In: YES
user_id=2066902
Originator: NO
The problem with vls is solved. Thanks
----------------------------------------------------------------------
Comment By: NicDumZ — Nicolas Dumazet (nicdumz)
Date: 2008-05-22 20:37
Message:
Logged In: YES
user_id=1963242
Originator: NO
I added {{db}} to vls: disambig templates in r5426. Does this helps ?
----------------------------------------------------------------------
Comment By: Carsrac (carsrac)
Date: 2008-05-21 22:33
Message:
Logged In: YES
user_id=2066902
Originator: NO
In vls wiki articles with {{db}} are disambiguation pages.
Please update the disambiguation codes for all wiki languages. It should
not be so hard.
----------------------------------------------------------------------
Comment By: Rotem Liss (rotemliss)
Date: 2008-02-11 18:49
Message:
Logged In: YES
user_id=1327030
Originator: NO
I don't get the message, running (with r5005):
python interwiki.py -putthrottle:33 -initialredirect -confirm ...And
Justice for All -lang:ksh
I get the following output:
Checked for running processes. 1 processes currently running, including
the current process.
Getting 1 pages from wikipedia:ksh...
NOTE: [[ksh:...And Justice for All]] is redirect to [[ksh:...And Justice
for All (Watt ėßß datt?)]]
[[...And Justice for All (Watt ėßß datt?)]]: [[ksh:...And Justice for
All (Watt ėßß datt?)]] gives new interwiki [[nl:...And Justice for
All]]
[[...And Justice for All (Watt ėßß datt?)]]: [[ksh:...And Justice for
All (Watt ėßß datt?)]] gives new interwiki [[en:...And Justice for
All]]
[[...And Justice for All (Watt ėßß datt?)]]: [[ksh:...And Justice for
All (Watt ėßß datt?)]] gives new interwiki [[sv:...And Justice for
All]]
[[...And Justice for All (Watt ėßß datt?)]]: [[ksh:...And Justice for
All (Watt ėßß datt?)]] gives new interwiki [[tr:...And Justice for
All]]
Getting 1 pages from wikipedia:nl...
NOTE: [[...And Justice for All (Watt ėßß datt?)]]: [[nl:...And Justice
for All]] gives duplicate interwiki on same site [[ksh:...And Justice for
All (Watt ėßß datt?)]]
Getting 1 pages from wikipedia:ksh...
Getting 1 pages from wikipedia:en...
Getting 1 pages from wikipedia:sv...
Sleeping for 4.5 seconds, 2008-02-11 19:46:06
Getting 1 pages from wikipedia:tr...
======Post-processing [[ksh:...And Justice for All (Watt ėßß
datt?)]]======
WARNING: wikipedia: [[en:...And Justice for All]] does not link to
[[ksh:...And Justice for All (Watt ėßß datt?)]]
Checking in another script, the page is identified as a disambiguation
page. Please try again using the latest revision.
----------------------------------------------------------------------
You can respond by visiting:
https://sourceforge.net/tracker/?func=detail&atid=603138&aid=1891058&group_…
Bugs item #1983819, was opened at 2008-06-03 20:38
Message generated for change (Comment added) made by nicdumz
You can respond by visiting:
https://sourceforge.net/tracker/?func=detail&atid=603138&aid=1983819&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: Closed
>Resolution: Fixed
Priority: 5
Private: No
Submitted By: Mikko Silvonen (silvonen)
>Assigned to: NicDumZ — Nicolas Dumazet (nicdumz)
Summary: category.py move crashes when a talk page exists
Initial Comment:
When I tried to move the Finnish category "Luokka:Wolfin palkinnon saaneet" to "Luokka:Wolfin matematiikan palkinnon saajat" with SilvonenBot, category.py crashed after creating the new category and moving its talk page, but before moving any articles to the new category. Did the script try to move the talk page twice, or what is happening here? No time to debug this myself today...
I was using r5503 (+ my patch in bug 1983740).
>category.py move
Checked for running processes. 3 processes currently running, including the current process.
Reading dump from category.dump.bz2
Please enter the old name of the category: Wolfin palkinnon saaneet
Please enter the new name of the category: Wolfin matematiikan palkinnon saajat
Moving text from Luokka:Wolfin palkinnon saaneet to Luokka:Wolfin matematiikan palkinnon saajat.
Creating page [[fi:Luokka:Wolfin matematiikan palkinnon saajat]]
Sleeping for 9.9 seconds, 2008-06-03 20:25:42
Dumping to category.dump.bz2, please wait...
Traceback (most recent call last):
File "C:\svn\pywikipedia\category.py", line 952, in <module>
bot.run()
File "C:\svn\pywikipedia\category.py", line 425, in run
if oldTalk.move(newTalkTitle, reason):
File "c:\svn\pywikipedia\wikipedia.py", line 2095, in move
raise PageNotSaved(u'Page move failed: Target page [[%s]] already exists.' % newtitle)
wikipedia.PageNotSaved: Page move failed: Target page [[Keskustelu luokasta:Wolfin matematiikan palkinnon saajat]] already exists.
----------------------------------------------------------------------
>Comment By: NicDumZ — Nicolas Dumazet (nicdumz)
Date: 2008-06-03 22:59
Message:
Logged In: YES
user_id=1963242
Originator: NO
Yep, wikipedia::move can raise errors since r5271, and its calls had not
been sanitized at that time.
Fixing this in r5509. Thanks for the report :)
----------------------------------------------------------------------
You can respond by visiting:
https://sourceforge.net/tracker/?func=detail&atid=603138&aid=1983819&group_…
Revision: 5508
Author: russblau
Date: 2008-06-03 20:23:58 +0000 (Tue, 03 Jun 2008)
Log Message:
-----------
Added a Page.text property; allows direct manipulation of the page's wiki-text as a unicode object. This holds the current edited text, not necessarily the same as the text saved on the wiki.
Modified Paths:
--------------
branches/rewrite/pywikibot/page.py
Modified: branches/rewrite/pywikibot/page.py
===================================================================
--- branches/rewrite/pywikibot/page.py 2008-06-03 20:10:50 UTC (rev 5507)
+++ branches/rewrite/pywikibot/page.py 2008-06-03 20:23:58 UTC (rev 5508)
@@ -327,6 +327,27 @@
self.site().loadrevisions(self)
return self._revid
+ def _textgetter(self):
+ """Return the current (edited) wikitext, loading it if necessary."""
+ if not hasattr(self, '_text'):
+ try:
+ self._text = self.get()
+ except NoPage: # TODO: what other exceptions might be returned?
+ self._text = u""
+ return self._text
+
+ def _textsetter(self, value):
+ """Update the edited wikitext"""
+ self._text = unicode(value)
+
+ def _cleartext(self):
+ """Delete the edited wikitext"""
+ if hasattr(self, "_text"):
+ del self._text
+
+ text = property(_textgetter, _textsetter, _cleartext,
+ "The edited wikitext (unicode) of this Page")
+
def userName(self):
"""Return name or IP address of last user to edit page."""
return self._revisions[self.latestRevision()].user
Patches item #1983740, was opened at 2008-06-03 19:21
Message generated for change (Comment added) made by nicdumz
You can respond by visiting:
https://sourceforge.net/tracker/?func=detail&atid=603140&aid=1983740&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: Mikko Silvonen (silvonen)
>Assigned to: NicDumZ — Nicolas Dumazet (nicdumz)
Summary: Correct and update the Finnish date formats
Initial Comment:
I made the following corrections and updates in the Finnish date formats in date.py, hopefully without introducing any new bugs:
* The abbreviation "eaa." (BC) should be spelled with a period. It was initially misspelled as "eaa" in Wikipedia page titles.
* Changed the millennium names to match with the existing naming convention.
* Corrected an off-by-one error in the millennium numbering.
* Corrected the "Month of the Year" value (although I am not sure if we currently have any articles of this type).
* Added the Cat_Year_MusicAlbums value.
See the attached patch. A code review would be appreciated, as this is the first modification that I have made in date.py.
----------------------------------------------------------------------
>Comment By: NicDumZ — Nicolas Dumazet (nicdumz)
Date: 2008-06-03 22:11
Message:
Logged In: YES
user_id=1963242
Originator: NO
It looked fine to me :)
Applied in r5507, thanks !!
----------------------------------------------------------------------
You can respond by visiting:
https://sourceforge.net/tracker/?func=detail&atid=603140&aid=1983740&group_…