Revision: 5501
Author: siebrand
Date: 2008-06-02 23:28:53 +0000 (Mon, 02 Jun 2008)
Log Message:
-----------
Fix syntax error
Modified Paths:
--------------
trunk/pywikipedia/category.py
Modified: trunk/pywikipedia/category.py
===================================================================
--- trunk/pywikipedia/category.py 2008-06-02 22:30:01 UTC (rev 5500)
+++ trunk/pywikipedia/category.py 2008-06-02 23:28:53 UTC (rev 5501)
@@ -286,7 +286,7 @@
Parameters: catlink - The Category to be linked
pagelink - the Page to be placed in the category
-
+
Trailing words in brackets will be removed. Example: If
category_name is 'Author' and pl is a Page to [[Alexandre Dumas
(senior)]], this function will return this Category:
Bugs item #1891058, was opened at 2008-02-11 11:26
Message generated for change (Comment added) made by siebrand
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: 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 #1899422, was opened at 2008-02-22 09:54
Message generated for change (Settings changed) made by siebrand
You can respond by visiting:
https://sourceforge.net/tracker/?func=detail&atid=603138&aid=1899422&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: tlh to be removed from wiktionaries
Initial Comment:
Interwiki links to 'tlh' don't work any longer in wiktionaries. Klingon wiktionary seems to be closed. Interwiki links should be removed.
----------------------------------------------------------------------
>Comment By: siebrand (siebrand)
Date: 2008-06-03 00:44
Message:
Logged In: YES
user_id=1107255
Originator: NO
Fixed in r5359.
----------------------------------------------------------------------
Comment By: Multichill (multichill)
Date: 2008-03-14 15:01
Message:
Logged In: YES
user_id=1777493
Originator: NO
Looks like the language is remove in 5119. Rotem, can you also add this
line so that leftover tlh links are cleaned up?
@@ -341,6 +340,7 @@
'mo': None, #
http://meta.wikimedia.org/wiki/Proposals_for_closing_projects/Closure_of_Mo…
'minnan':'zh-min-nan',
'nb': 'no',
+ 'tlh': None, # Remove Klingon
'tokipona': None,
'zh-tw': 'zh',
'zh-cn': 'zh'
----------------------------------------------------------------------
Comment By: Multichill (multichill)
Date: 2008-03-01 12:31
Message:
Logged In: YES
user_id=1777493
Originator: NO
Lets close it, see
http://meta.wikimedia.org/wiki/Proposals_for_closing_projects/Closure_of_Kl…
----------------------------------------------------------------------
Comment By: spacebirdy (real-spacebirdy)
Date: 2008-02-25 10:36
Message:
Logged In: YES
user_id=2018837
Originator: NO
tlh wiktionary is not closed yet,
_but_ the interwikilinks do _not_ work neither to the Wiktionary nor to
the Wikipedia.
Please see https://bugzilla.wikimedia.org/show_bug.cgi?id=9164
The tlh-projects if linked show up in the entry instead of on the left and
therefore breaking the entry.
Please remove tlh.
Many thanks in advance,
best regards.
----------------------------------------------------------------------
Comment By: Andre Engels (a_engels)
Date: 2008-02-25 09:18
Message:
Logged In: YES
user_id=843018
Originator: NO
Re-opening: Interwiki links to tlh: don't work any more, so it's
worse-than-silly to keep them. Please remove tlh from the language list and
add it to the obsolete list.
----------------------------------------------------------------------
Comment By: Rotem Liss (rotemliss)
Date: 2008-02-22 16:34
Message:
Logged In: YES
user_id=1327030
Originator: NO
wiktionary:tlh is not closed yet.
----------------------------------------------------------------------
You can respond by visiting:
https://sourceforge.net/tracker/?func=detail&atid=603138&aid=1899422&group_…
Bugs item #1965842, was opened at 2008-05-17 09:34
Message generated for change (Comment added) made by siebrand
You can respond by visiting:
https://sourceforge.net/tracker/?func=detail&atid=603138&aid=1965842&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: Melancholie (melancholie)
Assigned to: Nobody/Anonymous (nobody)
Summary: Modern skin not usable
Initial Comment:
The MediaWiki skin 'modern' does not have that much HTML cruft around the actual content. Thus there would be a little bit less bot traffic with this skin.
But I cannot use that skin with pyWikipedia! Error message:
Traceback (most recent call last):
File "interwiki.py", line 1731, in ?
bot.run()
File "interwiki.py", line 1482, in run
self.queryStep()
File "interwiki.py", line 1461, in queryStep
subj.finish(self)
File "interwiki.py", line 1042, in finish
if self.replaceLinks(page, new, bot):
File "interwiki.py", line 1200, in replaceLinks
status, reason, data = page.put(newtext, comment = wikipedia.translate(page.site().lang, msg)[0] + mods)
File "wikipedia.py", line 1222, in put
sysop = self._getActionUser(action = 'edit', restriction = self.editRestriction, sysop = False)
File "wikipedia.py", line 1114, in _getActionUser
if not self.site().isAllowed(action, sysop):
File "wikipedia.py", line 4013, in isAllowed
return right in self._rights[index]
TypeError: iterable argument required
----------------------------------------------------------------------
>Comment By: siebrand (siebrand)
Date: 2008-06-03 00:38
Message:
Logged In: YES
user_id=1107255
Originator: NO
Fixed in r5435. Hacked around by forcing bots to use monobook in the
requests ('useskin=monobook'). Will only be properly sorted if screen
scraping is no more.
----------------------------------------------------------------------
Comment By: Daniel Herding (wikipedian)
Date: 2008-05-22 17:41
Message:
Logged In: YES
user_id=880694
Originator: NO
"Modern" misses several tags that PyWikipediaBot relies on. For example,
the tag <div id="bodyContent"> (e.g. on Whatlinkshere) is important, but
only MonoBook has it.
Of course we could search for other tags that are available in more skins,
but I think it's not worth it, as you seem to be wrong about your
assumption that the "Modern" skin had less HTML than "MonoBook". HTML pages
seem to have about the same sizes with both skins.
----------------------------------------------------------------------
Comment By: Melancholie (melancholie)
Date: 2008-05-19 03:28
Message:
Logged In: YES
user_id=2089773
Originator: YES
BTW: See also https://bugzilla.wikimedia.org/show_bug.cgi?id=3651
That skin assumedly would not work either.
----------------------------------------------------------------------
Comment By: Melancholie (melancholie)
Date: 2008-05-17 09:38
Message:
Logged In: YES
user_id=2089773
Originator: YES
After ~manipulating~ line 4013, the following message is shown:
ERROR: Unexpected response from wiki server.
200 (OK)
[...edit view...]
----------------------------------------------------------------------
You can respond by visiting:
https://sourceforge.net/tracker/?func=detail&atid=603138&aid=1965842&group_…
Bugs item #1974164, was opened at 2008-05-27 07:05
Message generated for change (Settings changed) made by siebrand
You can respond by visiting:
https://sourceforge.net/tracker/?func=detail&atid=603138&aid=1974164&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: interwiki
Group: None
Status: Closed
>Resolution: Fixed
Priority: 5
Private: No
Submitted By: Melancholie (melancholie)
Assigned to: Nobody/Anonymous (nobody)
Summary: Move throttle.log into /logs
Initial Comment:
As throttle.log is a log, place it into the folder "logs" ;-)
----------------------------------------------------------------------
Comment By: siebrand (siebrand)
Date: 2008-06-03 00:17
Message:
Logged In: YES
user_id=1107255
Originator: NO
Fixed in r5499
----------------------------------------------------------------------
You can respond by visiting:
https://sourceforge.net/tracker/?func=detail&atid=603138&aid=1974164&group_…
Bugs item #1981134, was opened at 2008-06-01 07:58
Message generated for change (Settings changed) made by siebrand
You can respond by visiting:
https://sourceforge.net/tracker/?func=detail&atid=603138&aid=1981134&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: General
Group: None
Status: Closed
>Resolution: Fixed
Priority: 5
Private: No
Submitted By: Mikko Silvonen (silvonen)
Assigned to: Nobody/Anonymous (nobody)
Summary: New languages not sorted correctly
Initial Comment:
Some new languages (myv, ext, hif, gan, kaa, mdf, sah, szl and srn) were added in r5440, but the codes were not added in self.alphabetic_revised and self.alphabetic_lb in the file families/wikipedia_family.py, so these languages are not always sorted correctly.
Another problem: As far as I can see, hif, kaa, sah and szl are sorted incorrectly in self.alphabetic in the file family.py. Shouldn't they be sorted as follows?
fa,
hif (Fiji Hindi),
fo (Føroyskt);
pt (Português),
kaa (Qaraqalpaqsha),
crh (Qırımtatarca);
ru (Русский),
sah (Саха тыла / Sakha tyla),
se (Sámegiella); and
sl (Slovenščina),
szl (Ślůnski),
so (Soomaaliga).
I am attaching a patch for family.py. Sorry, no patch for families/wikipedia_family yet.
----------------------------------------------------------------------
Comment By: siebrand (siebrand)
Date: 2008-06-03 00:30
Message:
Logged In: YES
user_id=1107255
Originator: NO
Fixed in r5500
----------------------------------------------------------------------
Comment By: siebrand (siebrand)
Date: 2008-06-03 00:30
Message:
Logged In: YES
user_id=1107255
Originator: NO
Fixed in r...
----------------------------------------------------------------------
Comment By: Mikko Silvonen (silvonen)
Date: 2008-06-01 08:30
Message:
Logged In: YES
user_id=127947
Originator: YES
Hmm, I wonder how many errors there are with previously added languages?
At least stq (Seeltersk) is sorted incorrectly in self.alphabetic and
missing from the other tables.
Does anyone have a sorting order test kit?
----------------------------------------------------------------------
Comment By: Mikko Silvonen (silvonen)
Date: 2008-06-01 08:09
Message:
Logged In: YES
user_id=127947
Originator: YES
Also ext is sorted incorrectly in self.alphabetic. I'll upload a corrected
patch.
File Added: family.diff
----------------------------------------------------------------------
You can respond by visiting:
https://sourceforge.net/tracker/?func=detail&atid=603138&aid=1981134&group_…
Bugs item #1981134, was opened at 2008-06-01 07:58
Message generated for change (Comment added) made by siebrand
You can respond by visiting:
https://sourceforge.net/tracker/?func=detail&atid=603138&aid=1981134&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: General
Group: None
>Status: Closed
Resolution: None
Priority: 5
Private: No
Submitted By: Mikko Silvonen (silvonen)
Assigned to: Nobody/Anonymous (nobody)
Summary: New languages not sorted correctly
Initial Comment:
Some new languages (myv, ext, hif, gan, kaa, mdf, sah, szl and srn) were added in r5440, but the codes were not added in self.alphabetic_revised and self.alphabetic_lb in the file families/wikipedia_family.py, so these languages are not always sorted correctly.
Another problem: As far as I can see, hif, kaa, sah and szl are sorted incorrectly in self.alphabetic in the file family.py. Shouldn't they be sorted as follows?
fa,
hif (Fiji Hindi),
fo (Føroyskt);
pt (Português),
kaa (Qaraqalpaqsha),
crh (Qırımtatarca);
ru (Русский),
sah (Саха тыла / Sakha tyla),
se (Sámegiella); and
sl (Slovenščina),
szl (Ślůnski),
so (Soomaaliga).
I am attaching a patch for family.py. Sorry, no patch for families/wikipedia_family yet.
----------------------------------------------------------------------
>Comment By: siebrand (siebrand)
Date: 2008-06-03 00:30
Message:
Logged In: YES
user_id=1107255
Originator: NO
Fixed in r5500
----------------------------------------------------------------------
Comment By: siebrand (siebrand)
Date: 2008-06-03 00:30
Message:
Logged In: YES
user_id=1107255
Originator: NO
Fixed in r...
----------------------------------------------------------------------
Comment By: Mikko Silvonen (silvonen)
Date: 2008-06-01 08:30
Message:
Logged In: YES
user_id=127947
Originator: YES
Hmm, I wonder how many errors there are with previously added languages?
At least stq (Seeltersk) is sorted incorrectly in self.alphabetic and
missing from the other tables.
Does anyone have a sorting order test kit?
----------------------------------------------------------------------
Comment By: Mikko Silvonen (silvonen)
Date: 2008-06-01 08:09
Message:
Logged In: YES
user_id=127947
Originator: YES
Also ext is sorted incorrectly in self.alphabetic. I'll upload a corrected
patch.
File Added: family.diff
----------------------------------------------------------------------
You can respond by visiting:
https://sourceforge.net/tracker/?func=detail&atid=603138&aid=1981134&group_…