Bugs item #1796174, was opened at 2007-09-17 05:25
Message generated for change (Comment added) made by nobody
You can respond by visiting:
https://sourceforge.net/tracker/?func=detail&atid=603138&aid=1796174&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: Open
Resolution: None
Priority: 5
Private: No
Submitted By: Nobody/Anonymous (nobody)
Assigned to: Nobody/Anonymous (nobody)
Summary: category.py bug with -person and DEFAULTSORT templates
Initial Comment:
When using the -person switch on category.py to add categories to articles which use the {{DEFAULTSORT}} template, the script doesn't understand that the category already exists. For example:
python category.py add -person
(Add category "La Liga players")
The article might look like:
{{DEFAULTSORT:Pauleta}}
[[Category:La Liga Players]]
And the script will not understand that the category already exists for this article and add:
[[Category:La Liga players|Pauleta]]
----------------------------------------------------------------------
Comment By: Nobody/Anonymous (nobody)
Date: 2007-09-24 09:33
Message:
Logged In: NO
Also, the script SHOULD NOT add sorting information, even when using
-person, to articles which use the DEFAULTSORT template.
----------------------------------------------------------------------
You can respond by visiting:
https://sourceforge.net/tracker/?func=detail&atid=603138&aid=1796174&group_…
Bugs item #1797224, was opened at 2007-09-18 19:52
Message generated for change (Comment added) made by wikipedian
You can respond by visiting:
https://sourceforge.net/tracker/?func=detail&atid=603138&aid=1797224&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: Invalid
Priority: 5
Private: No
Submitted By: Nobody/Anonymous (nobody)
Assigned to: Nobody/Anonymous (nobody)
Summary: .categories()
Initial Comment:
This is the relevant part of code in Wikipedia.py, which gets the list of categories on a page:
catNamespace = '|'.join(site.category_namespaces())
R = re.compile(r'\[\[\s*(?P<namespace>%s)\s*:\s*(?P<catName>.+?)(?:\|(?P<sortKey>.+?))?\s*\]\]' % catNamespace)
for match in R.finditer(text):
cat = catlib.Category(site, '%s:%s' % (match.group('namespace'), match.group('catName')), sortKey = match.group('sortKey'))
result.append(cat)
return result
To me, it means it will also include those category commands that are inside <noinclude> or <nowiki> or are commented out (<!--) in the returned result, which should be fixed.
----------------------------------------------------------------------
>Comment By: Daniel Herding (wikipedian)
Date: 2007-09-24 11:09
Message:
Logged In: YES
user_id=880694
Originator: NO
one line above the code you pasted, there is this:
# Ignore category links within nowiki tags, pre tags, includeonly
tags,
# and HTML comments
text = removeDisabledParts(text)
So I think we can close this.
----------------------------------------------------------------------
You can respond by visiting:
https://sourceforge.net/tracker/?func=detail&atid=603138&aid=1797224&group_…
Patches item #1794705, was opened at 2007-09-14 15:13
Message generated for change (Comment added) made by wikipedian
You can respond by visiting:
https://sourceforge.net/tracker/?func=detail&atid=603140&aid=1794705&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: AlefZet (alefzet)
Assigned to: Nobody/Anonymous (nobody)
Summary: Fixing fallbacks in wikipedia.py for some Turkic languages
Initial Comment:
kk, ky & tt are very close each to other (Kypchak group).
az, tk & tr are very close each to other (Oghuz group).
ug & uz are very close each to other (Karluk group).
Karluk group is some kind between Kypchak and Oghuz, but closest to Oghuz.
----------------------------------------------------------------------
>Comment By: Daniel Herding (wikipedian)
Date: 2007-09-24 11:05
Message:
Logged In: YES
user_id=880694
Originator: NO
Thanks.
----------------------------------------------------------------------
You can respond by visiting:
https://sourceforge.net/tracker/?func=detail&atid=603140&aid=1794705&group_…
Revision: 4351
Author: wikipedian
Date: 2007-09-24 09:05:25 +0000 (Mon, 24 Sep 2007)
Log Message:
-----------
applied patch [ 1794705 ] Fixing fallbacks in wikipedia.py for some
Turkic languages by AlefZet
Modified Paths:
--------------
trunk/pywikipedia/wikipedia.py
Modified: trunk/pywikipedia/wikipedia.py
===================================================================
--- trunk/pywikipedia/wikipedia.py 2007-09-24 09:04:17 UTC (rev 4350)
+++ trunk/pywikipedia/wikipedia.py 2007-09-24 09:05:25 UTC (rev 4351)
@@ -4595,13 +4595,13 @@
return ['pt']
if code in ['mo','roa-rup']:
return ['ro']
- if code in ['av','bxr','cv','hy','lbe','ru-sib','tg','tt','udm','uk','xal']:
+ if code in ['av','bxr','cv','hy','lbe','ru-sib','tg','udm','uk','xal']:
return ['ru']
if code in ['be','be-x-old']:
return ['be','be-x-old','ru']
- if code in ['kk','ky','tk']:
- return ['tr','ru']
- if code in ['diq','ug','uz']:
+ if code in ['ky','tt','uz']:
+ return ['kk','tr','ru']
+ if code in ['az','diq','tk','ug']:
return ['tr']
if code in ['ja','minnan','zh','zh-cn']:
return ['zh','zh-tw','zh-classical','zh-cn']