Bugs item #1830917, was opened at 2007-11-13 03:01
Message generated for change (Comment added) made by russblau
You can respond by visiting:
https://sourceforge.net/tracker/?func=detail&atid=603138&aid=1830917&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: Nobody/Anonymous (nobody)
Assigned to: Nobody/Anonymous (nobody)
Summary: Redirect.py cannot handle meta links and crashes
Initial Comment:
When doing a "redirect.py double -xml:XX -always" on the French wikipedia :
Checking redirect 13106 of 385262...
>>> Utilisateur:Céréales Killer/Parser <<<
Target link 'm:ParserFunctions/fr' has different family 'm'
Exception in Page constructor
site=wikipedia:fr, title=m:ParserFunctions/fr, insite=wikipedia:fr, defaultNamespace=0
Traceback (most recent call last):
File "redirect.py", line 333, in <module>
main()
File "redirect.py", line 330, in main
bot.run()
File "redirect.py", line 285, in run
self.fix_double_redirects()
File "redirect.py", line 261, in fix_double_redirects
secondTargetPage = secondRedir.getRedirectTarget()
File "/home/nico/projets/pywikipedia/wikipedia.py", line 1580, in getRedirectTarget
return Page(self.site(), arg[0])
File "/home/nico/projets/pywikipedia/wikipedia.py", line 380, in __init__
self._site = getSite(otherlang, familyName)
File "/home/nico/projets/pywikipedia/wikipedia.py", line 4930, in getSite
_sites[key] = Site(code=code, fam=fam, user=user, persistent_http=persistent_http)
File "/home/nico/projets/pywikipedia/wikipedia.py", line 3574, in __init__
raise KeyError("Language %s does not exist in family %s"%(self.lang,self.family.name))
KeyError: 'Language fr does not exist in family meta'
----------------------------------------------------------------------
Comment By: Russell Blau (russblau)
Date: 2007-11-14 17:54
Message:
Logged In: YES
user_id=855050
Originator: NO
Fixed in r4545.
----------------------------------------------------------------------
You can respond by visiting:
https://sourceforge.net/tracker/?func=detail&atid=603138&aid=1830917&group_…
Bugs item #1820282, was opened at 2007-10-25 17:38
Message generated for change (Settings changed) made by leogregianin
You can respond by visiting:
https://sourceforge.net/tracker/?func=detail&atid=603138&aid=1820282&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: André Malafaya Baptista (malafaya)
Assigned to: Nobody/Anonymous (nobody)
Summary: featured.py for language codes including hyphen
Initial Comment:
When i tried running featured.py with switches:
-fromlang:be-x-old
-fromlang:roa-tara
it actually started processing.
Only later i realized those languages are not implemented in featured.py. I don't really understand what it was processing but it definitely was not the corresponding language.
----------------------------------------------------------------------
Comment By: André Malafaya Baptista (malafaya)
Date: 2007-11-13 19:47
Message:
Logged In: YES
user_id=1037345
Originator: YES
OK, I understood that apparently I have to put in 2 codes enclosing the
comma. Just to be sure, why 2 codes? According to the -fromlang switch's
help (although not very well written), the first code is "my language". I
assume this is the wiki I'm updating but this is already given by the -lang
switch (or the default in user_config.py). The language I put as the first
one, before the comma, is processed as a foreign wiki anyway. Isn't this
2-code thing deprecated? If not, why 2 languages and not 3 for example, or
just 1? It tries to process both languages separated by commas, not giving
any special status to the first one.
----------------------------------------------------------------------
Comment By: Leonardo Gregianin (leogregianin)
Date: 2007-11-13 13:37
Message:
Logged In: YES
user_id=1136737
Originator: NO
be-x-old and roa-tara don't have category or backlink in featured.py, for
this, don't running. And zh-classical and zh-yue work done.
>>>featured.py -fromlang:pt,zh-classical
Getting references to [[zh-classical:Template:????]]
>>> ?????? <<<
No corresponding page in wikipedia:pt
>>> ???? <<<
No corresponding page in wikipedia:pt
do you need put two languages in -fromlang:xx,yy
----------------------------------------------------------------------
Comment By: Leonardo Gregianin (leogregianin)
Date: 2007-11-13 13:36
Message:
Logged In: YES
user_id=1136737
Originator: NO
be-x-old and roa-tara don't have category or backlink in featured.py, for
this, don't running. And zh-classical and zh-yue work done.
>>>featured.py -fromlang:pt,zh-classical
Getting references to [[zh-classical:Template:????]]
>>> ?????? <<<
No corresponding page in wikipedia:pt
>>> ???? <<<
No corresponding page in wikipedia:pt
do you need put two languages in -fromlang:xx,yy
----------------------------------------------------------------------
Comment By: André Malafaya Baptista (malafaya)
Date: 2007-10-26 09:47
Message:
Logged In: YES
user_id=1037345
Originator: YES
The problem seems to be here:
if len(fromlang)==1 and fromlang[0].index("-")>=0:
Apparently, if you only specify one language, it considers the hyphen as a
separator between the first and last languages to process.
If I specify:
-fromlang:zh-yue,zh-yue
then I can make it work.
----------------------------------------------------------------------
Comment By: André Malafaya Baptista (malafaya)
Date: 2007-10-25 17:49
Message:
Logged In: YES
user_id=1037345
Originator: YES
I just tried for implemented language codes zh-yue and zh-classical. No
work is done by the bot. It doesn't even try to download the template
linking pages.
----------------------------------------------------------------------
You can respond by visiting:
https://sourceforge.net/tracker/?func=detail&atid=603138&aid=1820282&group_…
Revision: 4544
Author: leogregianin
Date: 2007-11-14 18:55:41 +0000 (Wed, 14 Nov 2007)
Log Message:
-----------
better documentation
better error message when language doesn't have feature category source
Fixed Bug 1820282: featured.py for language codes including hyphen
TODO: create commandline for put {{linkfa}} in right next interwiki or top of interwikis
Modified Paths:
--------------
trunk/pywikipedia/featured.py
Modified: trunk/pywikipedia/featured.py
===================================================================
--- trunk/pywikipedia/featured.py 2007-11-14 18:08:32 UTC (rev 4543)
+++ trunk/pywikipedia/featured.py 2007-11-14 18:55:41 UTC (rev 4544)
@@ -3,19 +3,18 @@
"""
This script understands various command-line arguments:
-* -interactive : ask before changing page
+* -interactive : ask before changing page
-* -nocache : doesn't include /featured/cache file to remembers if the
- article already was verified.
+* -nocache : doesn't include /featured/cache file to remembers if the
+ article already was verified.
-* -fromlang:xx,yy : xx is your language and yy the language was verified or
- using.
+* -fromlang:xx,yy,xx : xx,..,.. is the languages was verified.
-* -fromall : to verified all languages.
+* -fromall : to verified all languages.
-* -after:zzzz : process pages after and including page zzzz
+* -after:zzzz : process pages after and including page zzzz
-usage: featured.py [-interactive] [-nocache] [-fromlang:xx,yy|-fromall]
+usage: featured.py [-interactive] [-nocache] [-after:zzzz] [-fromlang:xx,yy,zz|-fromall]
"""
__version__ = '$Id$'
@@ -157,7 +156,11 @@
cache={}
def featuredArticles(site):
- method=featured_name[site.lang][0]
+ try:
+ method=featured_name[site.lang][0]
+ except KeyError, ex:
+ print 'Error: language %s doesn\'t have feature category source.' % ex
+ sys.exit()
name=featured_name[site.lang][1]
args=featured_name[site.lang][2:]
raw=method(site, name, *args)
@@ -273,9 +276,20 @@
wikipedia.output(u"no interwiki record, very strange")
continue
comment = wikipedia.setAction(wikipedia.translate(wikipedia.getSite(), msg) % (fromsite.lang, a.title()))
- text=wikipedia.replaceCategoryLinks(text+(u"{{%s|%s}}"%(findtemplate, fromsite.lang)), atrans.categories())
- atrans.put(text, comment)
+ # TODO: create commandline for this
+ ### Placing {{Link FA|xx}} right next to corresponding interwiki ###
+ text=(text[:m.end()]
+ + (u" {{%s|%s}}" % (findtemplate, fromsite.lang))
+ + text[m.end():])
+ ### Moving {{Link FA|xx}} to top of interwikis ###
+ # text=wikipedia.replaceCategoryLinks(text+(u"{{%s|%s}}"%(findtemplate, fromsite.lang)), atrans.categories())
+
+ try:
+ atrans.put(text, comment)
+ except wikipedia.LockedPage:
+ wikipedia.output(u'Page %s is locked!' % atrans.title())
+
cc[a.title()]=atrans.title()
except wikipedia.PageNotSaved, e:
wikipedia.output(u"Page not saved")
@@ -292,12 +306,12 @@
fromlang=arg[10:].split(",")
try:
if len(fromlang)==1 and fromlang[0].index("-")>=0:
- ll1,ll2=fromlang[0].split("-",1)
+ ll1,ll2=fromlang[0]
if not ll1: ll1=""
if not ll2: ll2="zzzzzzz"
fromlang=[ll for ll in featured_name.keys() if ll>=ll1 and ll<=ll2]
except:
- wikipedia.showHelp('featured')
+ pass
elif arg == '-fromall':
fromlang=featured_name.keys()
elif arg.startswith('-after:'):
Bugs item #1830920, was opened at 2007-11-13 00:10
Message generated for change (Comment added) made by nobody
You can respond by visiting:
https://sourceforge.net/tracker/?func=detail&atid=603138&aid=1830920&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: Nobody/Anonymous (nobody)
Assigned to: Nobody/Anonymous (nobody)
Summary: "replace.py -nocase -excepttext" Unicode AttributeError
Initial Comment:
"python replace.py -start:! -nocase -excepttext:42 foo bar" crashes :
Checked for running processes. 2 processes currently running, including the current process.
Retrieving Allpages special page for wikipedia:fr from %21, namespace 0
Getting 50 pages from wikipedia:fr...
Traceback (most recent call last):
File "replace.py", line 556, in <module>
main()
File "replace.py", line 552, in main
bot.run()
File "replace.py", line 299, in run
if self.isTextExcepted(original_text):
File "replace.py", line 259, in isTextExcepted
if exc.search(original_text):
AttributeError: 'unicode' object has no attribute 'search'
----------------------------------------------------------------------
Comment By: Nobody/Anonymous (nobody)
Date: 2007-11-14 10:46
Message:
Logged In: NO
I would add that a call to replace.py with -nocase and one or more of the
(-excepttext, -excepttitle and -excepttitle parameters) will cause the same
behavior.
----------------------------------------------------------------------
You can respond by visiting:
https://sourceforge.net/tracker/?func=detail&atid=603138&aid=1830920&group_…
Revision: 4543
Author: leogregianin
Date: 2007-11-14 18:08:32 +0000 (Wed, 14 Nov 2007)
Log Message:
-----------
add more words by Malafaya
Modified Paths:
--------------
trunk/spelling/spelling-vo.txt
Modified: trunk/spelling/spelling-vo.txt
===================================================================
--- trunk/spelling/spelling-vo.txt 2007-11-14 16:02:19 UTC (rev 4542)
+++ trunk/spelling/spelling-vo.txt 2007-11-14 18:08:32 UTC (rev 4543)
@@ -22,3 +22,16 @@
1 telplänov
1 yunul
1 zif
+1 topam
+1 Litaliyän
+1 nem
+1 topäd
+1 videt
+1 lunet
+1 topon
+1 sürfat
+1 ela
+1 labon
+1 belödanis
+1 yüms
+1 plödik
\ No newline at end of file
Bugs item #1722090, was opened at 2007-05-20 05:59
Message generated for change (Comment added) made by leogregianin
You can respond by visiting:
https://sourceforge.net/tracker/?func=detail&atid=603138&aid=1722090&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: 6
Private: No
Submitted By: VasilievVV (vasilievvv)
Assigned to: Nobody/Anonymous (nobody)
Summary: featured.py duplicates {{Link FA}}
Initial Comment:
featured.py can't understand that {{Link_FA}} and {{Link FA}} is the same. See http://en.wikipedia.org/wiki/User_talk:VVVBot#broken
----------------------------------------------------------------------
>Comment By: Leonardo Gregianin (leogregianin)
Date: 2007-11-14 13:15
Message:
Logged In: YES
user_id=1136737
Originator: NO
fixed in r.4542
----------------------------------------------------------------------
Comment By: Leonardo Gregianin (leogregianin)
Date: 2007-08-14 20:02
Message:
Logged In: YES
user_id=1136737
Originator: NO
This happens due the diverse forms to write template, p.e. capital letters
or with underline and featured.py only searchs a form. With two
dictionaries with templates solving the problem, A templates to search and
another with only template to write in the site.
----------------------------------------------------------------------
Comment By: Eric D. (zolk)
Date: 2007-08-14 13:51
Message:
Logged In: YES
user_id=310741
Originator: NO
Same problem on fr with {{lien AdQ}}.
Example :
http://fr.wikipedia.org/w/index.php?title=Lion&curid=5862&diff=19664918&old…
(with duplicate of {{Lien Adq|de}})
Cordialy
----------------------------------------------------------------------
You can respond by visiting:
https://sourceforge.net/tracker/?func=detail&atid=603138&aid=1722090&group_…
Bugs item #1831422, was opened at 2007-11-13 20:05
Message generated for change (Comment added) made by leogregianin
You can respond by visiting:
https://sourceforge.net/tracker/?func=detail&atid=603138&aid=1831422&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: Nobody/Anonymous (nobody)
Assigned to: Nobody/Anonymous (nobody)
Summary: wrong model fort featured.py for the french wiki
Initial Comment:
On the french Wikipedia like all other Wikipedia, we use a capital letter for the first letter.
PS : it will be good that the script detect if the model isn't in the page with a small first letter
----------------------------------------------------------------------
>Comment By: Leonardo Gregianin (leogregianin)
Date: 2007-11-14 13:02
Message:
Logged In: YES
user_id=1136737
Originator: NO
fixed in revision 4542
----------------------------------------------------------------------
You can respond by visiting:
https://sourceforge.net/tracker/?func=detail&atid=603138&aid=1831422&group_…
Patches item #1831263, was opened at 2007-11-13 15:55
Message generated for change (Settings changed) made by leogregianin
You can respond by visiting:
https://sourceforge.net/tracker/?func=detail&atid=603140&aid=1831263&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: André Malafaya Baptista (malafaya)
Assigned to: Nobody/Anonymous (nobody)
Summary: Volapük spelling aditions
Initial Comment:
Please patch spelling-vo.txt with attached file. Thanks!
----------------------------------------------------------------------
You can respond by visiting:
https://sourceforge.net/tracker/?func=detail&atid=603140&aid=1831263&group_…