Feature Requests item #1912001, was opened at 2008-03-11 17:29
Message generated for change (Tracker Item Submitted) made by Item Submitter
You can respond by visiting:
https://sourceforge.net/tracker/?func=detail&atid=603141&aid=1912001&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: Marc-Etienne Vargenau (vargenau)
Assigned to: Nobody/Anonymous (nobody)
Summary: Add a new option to interwiki.py
Initial Comment:
Hello,
When working on years or birth categories for instance, I give a huge number of hints.
And I now these hint are right (when they exist).
If there is a wrong link somewhere (e.g. en:category:2000_deaths linking to fr:category:naissance_en_2000), I get a huge number of questions to which I always answer "1" (because the hint is proposed first).
So I propose to create a new option "-hintisright" (or something).
In that case, if there is a conflict between a hint and other page(s), the hint is selected automatically.
----------------------------------------------------------------------
You can respond by visiting:
https://sourceforge.net/tracker/?func=detail&atid=603141&aid=1912001&group_…
Patches item #1911954, was opened at 2008-03-11 11:22
Message generated for change (Tracker Item Submitted) made by Item Submitter
You can respond by visiting:
https://sourceforge.net/tracker/?func=detail&atid=603140&aid=1911954&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: AndreasJS (andreasjs)
Assigned to: Nobody/Anonymous (nobody)
Summary: wikipedia.py recursive redirect + various fixes
Initial Comment:
Page.getRedirectTarget(recursive = True): follow redirects, can raise exception InfiniteLoop
Page.title(): Esperanto decoding, fix bug 1425206 and patch 1880140
Page._putPage(): add page name to ServerError message
Page.move(): add NoPage and PageNotSaved exceptions
Page.delete(mark = True): add delete reason as parameter to {{Delete}} tag
getLanguageLinks(): allow interwiki links like :en: pointing to Main Page
----------------------------------------------------------------------
You can respond by visiting:
https://sourceforge.net/tracker/?func=detail&atid=603140&aid=1911954&group_…
Feature Requests item #1911836, was opened at 2008-03-11 05:54
Message generated for change (Tracker Item Submitted) made by Item Submitter
You can respond by visiting:
https://sourceforge.net/tracker/?func=detail&atid=603141&aid=1911836&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: -end: option for interwiki.py
Initial Comment:
can you please add -end: option to complement -start: option in interwiki.py to work, say, on numeric pages or on a specific letter only?
----------------------------------------------------------------------
You can respond by visiting:
https://sourceforge.net/tracker/?func=detail&atid=603141&aid=1911836&group_…
Feature Requests item #1910658, was opened at 2008-03-09 17:00
Message generated for change (Comment added) made by andreasjs
You can respond by visiting:
https://sourceforge.net/tracker/?func=detail&atid=603141&aid=1910658&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: Change links pointing to redirect pages
Initial Comment:
Hello,
I'm admin on mediawiki site on my companie's intranet.
I have renamed a lot of pages to integrate them in a new namespace.
As a result i have a lot of links that link to the olds names of the pages which are became redirect pages.
That's a problem for us and for cosmetic reason i have to update all this links to link directly on the renamed pages.
I dont have found a pywikipedia script who can do this ?
Perhaps the idea is to collect all the redirect page like pywikepedia do it for the double redirect ones
and scan all the pages in the wiki to see if they point to one of this redirect page to finally change this links in consequence..
Thanks for your help
Best regards
----------------------------------------------------------------------
>Comment By: AndreasJS (andreasjs)
Date: 2008-03-10 17:19
Message:
Logged In: YES
user_id=1738850
Originator: NO
I made a program that does this. (Attached)
Please try it out to see if it does what you want.
File Added: resolveredirects.py
----------------------------------------------------------------------
You can respond by visiting:
https://sourceforge.net/tracker/?func=detail&atid=603141&aid=1910658&group_…
Hello,
i'm admin on mediawiki site on my companie's intranet.
I have renamed a lot of pages to integrate them in a new namespace.
As a result i have a lot of links that link to the olds names of the
pages which are became redirect pages.
that's a problem for us and for cosmetic reason i have to update all
this links to link directly on the renamed pages.
I dont have found e pywikipedia script who can do this ?
Search all the links in the wiki and change them if the link point on a
redirect page ?
Thanks for your help
Best regards
Revision: 5118
Author: rotem
Date: 2008-03-10 12:44:09 +0000 (Mon, 10 Mar 2008)
Log Message:
-----------
Changing script behavior to print the languages list.
Modified Paths:
--------------
trunk/pywikipedia/maintenance/wikimedia_sites.py
Modified: trunk/pywikipedia/maintenance/wikimedia_sites.py
===================================================================
--- trunk/pywikipedia/maintenance/wikimedia_sites.py 2008-03-10 11:55:26 UTC (rev 5117)
+++ trunk/pywikipedia/maintenance/wikimedia_sites.py 2008-03-10 12:44:09 UTC (rev 5118)
@@ -20,7 +20,7 @@
for family in families:
print 'Checking family %s:' % family
- languages_by_size = wikipedia.Family(family).languages_by_size
+ original = wikipedia.Family(family).languages_by_size
obsolete = wikipedia.Family(family).obsolete
url = 'http://s23.org/wikistats/%s' % familiesDict[family]
@@ -33,29 +33,29 @@
else:
p = re.compile(r'\[http://([a-z\-]{2,}).%s.org/wiki/ \1]' % family)
- index = 0
+ new = []
for lang in p.findall(text):
if lang in obsolete or lang in exceptions:
# Ignore this language
continue
- if index >= len(languages_by_size):
- print 'Unmatched languages: site - %s, family file ended' % lang
- break
- if lang == languages_by_size[index]:
- # Matched languages
+ new.append(lang)
+
+ if original == new:
+ print 'The lists match!'
+ else:
+ print "The lists don't match, the new list is:"
+ print ' self.languages_by_size = ['
+ line = ' '
+ index = 0
+ for lang in new:
index += 1
- else:
- # Unmatched languages
- print 'Unmatched languages: site - %s, family file - %s' % (lang, languages_by_size[index])
- if lang in languages_by_size and index < languages_by_size.index(lang):
- # Try to increment the index until it reaches the current language
- index += 1
- while index < len(languages_by_size) and languages_by_size[index] != lang and lang in languages_by_size and index < languages_by_size.index(lang):
- print 'Unmatched languages: site - %s, family file - %s' % (lang, languages_by_size[index])
- index += 1
- # Now increment the index again for the next iteration
- index += 1
- if index < len(languages_by_size):
- # Special-case exception
- if family != 'wikinews' or languages_by_size[index] != 'ta':
- print 'Unmatched languages: site ended, family file - %s' % languages_by_size[index]
+ if index > 1:
+ line += u' '
+ line += u"'%s'," % lang
+ if index == 10:
+ print line
+ line = ' '
+ index = 0
+ if index > 0:
+ print line
+ print ' ]'
Patches item #1910912, was opened at 2008-03-10 11:06
Message generated for change (Settings changed) made by rotemliss
You can respond by visiting:
https://sourceforge.net/tracker/?func=detail&atid=603140&aid=1910912&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: Alex S.H. Lin (lin4h)
Assigned to: Nobody/Anonymous (nobody)
Summary: locale update
Initial Comment:
wiktionary_family.py>add hsb.wiktionary
spamremove.py>typo zh message.
speedy_delete.py> add jawiki selection from [[ja:MediaWiki:deletereason-dropdown]]
----------------------------------------------------------------------
>Comment By: Rotem Liss (rotemliss)
Date: 2008-03-10 13:55
Message:
Logged In: YES
user_id=1327030
Originator: NO
Applied in r5117.
----------------------------------------------------------------------
You can respond by visiting:
https://sourceforge.net/tracker/?func=detail&atid=603140&aid=1910912&group_…