Bugs item #3404473, was opened at 2011-09-05 16:41 Message generated for change (Comment added) made by avicennasis You can respond by visiting: https://sourceforge.net/tracker/?func=detail&atid=603138&aid=3404473...
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: Avicennasis (avicennasis) Assigned to: xqt (xqt) Summary: redirect.py Swedish localization
Initial Comment: redirect.py shouldn't be changing from the Swedish Localization of Redirect to English when fixing double redirects.
Currently, It will change "#OMDIRIGERING [[Foo]]" to "#REDIRECT [[Foo]]" on SvWp, which it should not do. The Swedish redirect, if already in use, should remain.
python version.py Pywikipedia [http] trunk/pywikipedia (r9483, 2011/08/29, 19:17:43) Python 2.6.5 (r265:79063, Jun 12 2010, 17:07:01) [GCC 4.3.4 20090804 (release) 1] config-settings: use_api = True use_api_login = True unicode test: ok
----------------------------------------------------------------------
Comment By: Avicennasis (avicennasis)
Date: 2011-09-15 22:02
Message: That it is - "return '1.17wmf1'". I don't believe I've touched either redirect.py or wikipedia_family.py files directly.
I've updated to r9520, and this is still happening. http://sv.wikipedia.org/w/index.php?title=Stadener,_Sam&diff=prev&ol...
Thinking perhaps I may have tinkered with some setting somewhere, I downloaded the latest nightly (r9525) and used it for a separate installation. I ran Generate_user_files.py (with no further modifications to the user-config file), then login.py, then redirect.py, and it still happens - http://sv.wikipedia.org/w/index.php?title=Anv%C3%A4ndare:Avicennasis/sandbox...
I also tried the newest nightly on a windows box with a different version of python: Pywikipedia [http] trunk/pywikipedia (r9525, 2011/09/14, 22:54:59) Python 2.7.1 (r271:86832, Nov 27 2010, 17:19:03) [MSC v.1500 64 bit (AMD64)] config-settings: use_api = True use_api_login = True unicode test: triggers problem #3081100
The results I got were the same: http://sv.wikipedia.org/w/index.php?title=Anv%C3%A4ndare:Avicennasis/sandbox...
----------------------------------------------------------------------
Comment By: xqt (xqt) Date: 2011-09-08 17:04
Message: I've no idea for that because neighter the wikipedia.py parts nor redirect.py has been changed since release r9483. Could you check the next edits of redirect.py manually. Do you have any modifications on these two files or in wikipedia_family.py? Could you check de funktion version() in wikipedia_family.py. Just search for "def version(". next code line must be: return '1.17wmf1'
----------------------------------------------------------------------
Comment By: Avicennasis (avicennasis) Date: 2011-09-06 16:29
Message: That works - it returns the "OMDIRIGERING". Hmm. I'll update to the latest nightly and try again when AvicBot is unblocked on SvWp here shortly. I have no idea why that happened to begin with, though.
----------------------------------------------------------------------
Comment By: xqt (xqt) Date: 2011-09-06 12:30
Message: Hm, I tried it again with my bot and it works as expected: http://sv.wikipedia.org/w/index.php?title=Manga%C3%A5r&diff=prev&old...
Could you put these 3 lines given apove into a file e.g. named redir_test.py and run it in your DOS-box. What is the result?
----------------------------------------------------------------------
Comment By: Avicennasis (avicennasis) Date: 2011-09-06 07:19
Message: http://sv.wikipedia.org/w/index.php?title=V%C3%A4rldsm%C3%A4sterskap_i_baske... and http://sv.wikipedia.org/w/index.php?title=VM_i_basket&diff=prev&oldi... are examples. And I'm currently running this through Cygwin on a Windows box - I'm not sure how to access (if possible) IDLE from that side.
The Windows side does return it properly, though.
----------------------------------------------------------------------
Comment By: xqt (xqt) Date: 2011-09-06 04:15
Message: Do you have a sample for me? I found the bot works fine: http://sv.wikipedia.org/w/index.php?title=Stora_saltsj%C3%B6n&diff=prev&...
try the following IDLE commants: import wikipedia as wp site = wp.getSite('sv') site.redirect()
this should print: u'OMDIRIGERING'
----------------------------------------------------------------------
You can respond by visiting: https://sourceforge.net/tracker/?func=detail&atid=603138&aid=3404473...
pywikipedia-bugs@lists.wikimedia.org