Bugs item #3018780, was opened at 2010-06-20 20:14
Message generated for change (Comment added) made by xqt
You can respond by visiting:
https://sourceforge.net/tracker/?func=detail&atid=603138&aid=3018780&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: Duplicate
Priority: 5
Private: No
Submitted By: Nobody/Anonymous (nobody)
>Assigned to: xqt (xqt)
Summary: redirect.py ignore -namespace
Initial Comment:
version.py:
Pywikipedia [http] trunk/pywikipedia (r8153, 2010/05/10, 06:52:26)
Python 2.6.1 (r261:67515, Feb 11 2010, 00:51:29)
config-settings:
use_api = True
use_api_login = True
Trying to find double redirects with 'python redirect.py double -namespace:0' will also fix redirects in other namespace, like -namespace is ignored, also the same with ''python redirect.py -namespace:0 double'
----------------------------------------------------------------------
>Comment By: xqt (xqt)
Date: 2010-06-21 08:35
Message:
-namespace is not a valid option for redirect.py. This request is also
done in feature request #1720428
----------------------------------------------------------------------
You can respond by visiting:
https://sourceforge.net/tracker/?func=detail&atid=603138&aid=3018780&group_…
Bugs item #3018780, was opened at 2010-06-20 18:14
Message generated for change (Tracker Item Submitted) made by nobody
You can respond by visiting:
https://sourceforge.net/tracker/?func=detail&atid=603138&aid=3018780&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 ignore -namespace
Initial Comment:
version.py:
Pywikipedia [http] trunk/pywikipedia (r8153, 2010/05/10, 06:52:26)
Python 2.6.1 (r261:67515, Feb 11 2010, 00:51:29)
config-settings:
use_api = True
use_api_login = True
Trying to find double redirects with 'python redirect.py double -namespace:0' will also fix redirects in other namespace, like -namespace is ignored, also the same with ''python redirect.py -namespace:0 double'
----------------------------------------------------------------------
You can respond by visiting:
https://sourceforge.net/tracker/?func=detail&atid=603138&aid=3018780&group_…
Bugs item #3018240, was opened at 2010-06-18 19:32
Message generated for change (Tracker Item Submitted) made by nakor-wikipedia
You can respond by visiting:
https://sourceforge.net/tracker/?func=detail&atid=603138&aid=3018240&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: rewrite
Group: None
Status: Open
Resolution: None
Priority: 5
Private: No
Submitted By: Nakor Wikipedia (nakor-wikipedia)
Assigned to: Russell Blau (russblau)
Summary: [pywikibot] page.getReferences returns incorrect list
Initial Comment:
Hello,
Try below code in pywikipedia (you ahve to set your bot to go on fr.wiki):
#!/usr/bin/python
# -*- coding: utf-8 -*-
import wikipedia
site = wikipedia.getSite()
page = wikipedia.Page(site, u'Modèle:Suppression')
referencesGenerator=page.getReferences(follow_redirects=False, withTemplateInclusion=False, onlyTemplateInclusion=False, redirectsOnly=True)
print len(list(referencesGenerator))
result is correct: 7 pages redirecting to that one
Now run the following code using pywikibot:
#!/usr/bin/python
# -*- coding: utf-8 -*-
import pywikibot
site = pywikibot.getSite()
page = pywikibot.Page(site, u'Modèle:Suppression')
referencesGenerator=page.getReferences(follow_redirects=False, withTemplateInclusion=False, onlyTemplateInclusion=False, redirectsOnly=True)
print len(list(referencesGenerator))
result is incorrect: 1681
----------------------------------------------------------------------
You can respond by visiting:
https://sourceforge.net/tracker/?func=detail&atid=603138&aid=3018240&group_…
Patches item #3017517, was opened at 2010-06-17 13:38
Message generated for change (Comment added) made by lsundar
You can respond by visiting:
https://sourceforge.net/tracker/?func=detail&atid=603140&aid=3017517&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: BalaSundaraRaman L (lsundar)
Assigned to: Nobody/Anonymous (nobody)
Summary: cosmetic_changes.py to remove bad wikilinks
Initial Comment:
Translated articles created using http://translate.google.com/toolkit?hl=en suffer from one complex issue. It creates links to impossible pages in the target wiki. Let's take the example below:
( Excerpt from http://en.wikipedia.org/wiki/Corporate_governance )
A related but separate thread of discussions focuses on the impact of a corporate governance system in [[economic efficiency]], with a strong emphasis on shareholders' welfare.
This when translated to Tamil, for example, will have a single word for "in economic efficiency" and the tool wrongly links to that phrase. Since article title can't be of the form "in economic efficiency", it'll remain a red link forever. Since articles are littered with such red links, it's hard to read.
In view of the large-scale http://wikimania2010.wikimedia.org/wiki/Submissions/Google_translation project and the problems we faced ( http://wikimania2010.wikimedia.org/wiki/Submissions/A_Review_of_Google_Tran… ), I've developed a patch for cosmetic_changes.py which'll remove red links of the form [[some phrase]] leaving out cases where the label is different from the target. I've attached the patch as well. The changes by my bot running the modified code is at http://ta.wikipedia.org/wiki/Special:Contributions/SundarBot
If approved, I can give it to a dedicated bot operator with the translation team.
----------------------------------------------------------------------
>Comment By: BalaSundaraRaman L (lsundar)
Date: 2010-06-18 10:00
Message:
The changes will be visible when run in the following manner:
python cosmetic_changes.py -fewerlinks -keepblue -file:listofarticles.txt
For a diff of its changes, please check http://is.gd/cTJWr
----------------------------------------------------------------------
You can respond by visiting:
https://sourceforge.net/tracker/?func=detail&atid=603140&aid=3017517&group_…
Bugs item #3016653, was opened at 2010-06-15 20:19
Message generated for change (Comment added) made by xqt
You can respond by visiting:
https://sourceforge.net/tracker/?func=detail&atid=603138&aid=3016653&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: Pending
Resolution: None
Priority: 5
Private: No
Submitted By: chanueting (chanueting)
Assigned to: xqt (xqt)
Summary: upload.py "Invalid input filename given. Try again."
Initial Comment:
Could not check the address correctly if the filename is previously wrongly input.
I think the proper command on line 100 of function urlOK should be:
return self.url != len(url) and ('://' in self.url or os.path.exists(self.url))
instead of '' since '' is always False.
----------------------------------------------------------------------
>Comment By: xqt (xqt)
Date: 2010-06-17 14:59
Message:
I would prefer
return len(self.url) > 0 and ('://' in self.url or
os.path.exists(self.url))
but it should work as the given expression. Again: What is your command
line or what is the filename you typed in?
----------------------------------------------------------------------
Comment By: chanueting (chanueting)
Date: 2010-06-17 13:13
Message:
Sorry about the typo. The command should be:
return len(self.url) and ('://' in self.url or os.path.exists(self.url))
I thought that is a bug since I could only have that works on my machine.
May be there is a problem on my machine?
----------------------------------------------------------------------
Comment By: xqt (xqt)
Date: 2010-06-16 12:41
Message:
url != len(url) is always True
What is your command line or what is the filename you typed in?
Try to input the file as follows if you are dealing wiht windows os:
"C:\\My Documents\\My Pictures\\My Picture.jpg"
----------------------------------------------------------------------
Comment By: chanueting (chanueting)
Date: 2010-06-15 20:21
Message:
python version.py missed: http://pywiki.pastey.net/137714
----------------------------------------------------------------------
You can respond by visiting:
https://sourceforge.net/tracker/?func=detail&atid=603138&aid=3016653&group_…
Bugs item #3016658, was opened at 2010-06-15 20:33
Message generated for change (Settings changed) made by xqt
You can respond by visiting:
https://sourceforge.net/tracker/?func=detail&atid=603138&aid=3016658&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: chanueting (chanueting)
Assigned to: xqt (xqt)
Summary: Token warning and unable to upload the file
Initial Comment:
I keep getting "WARNING: Token not found on commons:commons. You will not be able to edit any page." message even with "login.py -lang:commons -family:commons" used and the file cannot be uploaded with "Upload of xxx.svg probably failed. Above you see the HTML page which was returned by MediaWiki. Try again? "
----------------------------------------------------------------------
>Comment By: xqt (xqt)
Date: 2010-06-17 14:40
Message:
It ist strictly recommended to set
use_api =True
in your user_config.py. Otherwice you get this token warning on wikimedia
sites like commons. Since this is the default setting you may also remove
use_api = False from your user_config.py
----------------------------------------------------------------------
Comment By: chanueting (chanueting)
Date: 2010-06-17 07:34
Message:
Thanks for your command. The output would be:
http://pywiki.pastey.net/137775
----------------------------------------------------------------------
Comment By: xqt (xqt)
Date: 2010-06-16 12:43
Message:
are you shure you are already logged in?
try
login.py -family:commons -lang:commons -test
for verify
----------------------------------------------------------------------
Comment By: chanueting (chanueting)
Date: 2010-06-15 20:38
Message:
python version.py missed again: http://pywiki.pastey.net/137714.
----------------------------------------------------------------------
You can respond by visiting:
https://sourceforge.net/tracker/?func=detail&atid=603138&aid=3016658&group_…
Bugs item #3016653, was opened at 2010-06-16 02:19
Message generated for change (Comment added) made by chanueting
You can respond by visiting:
https://sourceforge.net/tracker/?func=detail&atid=603138&aid=3016653&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: chanueting (chanueting)
Assigned to: xqt (xqt)
Summary: upload.py "Invalid input filename given. Try again."
Initial Comment:
Could not check the address correctly if the filename is previously wrongly input.
I think the proper command on line 100 of function urlOK should be:
return self.url != len(url) and ('://' in self.url or os.path.exists(self.url))
instead of '' since '' is always False.
----------------------------------------------------------------------
>Comment By: chanueting (chanueting)
Date: 2010-06-17 19:13
Message:
Sorry about the typo. The command should be:
return len(self.url) and ('://' in self.url or os.path.exists(self.url))
I thought that is a bug since I could only have that works on my machine.
May be there is a problem on my machine?
----------------------------------------------------------------------
Comment By: xqt (xqt)
Date: 2010-06-16 18:41
Message:
url != len(url) is always True
What is your command line or what is the filename you typed in?
Try to input the file as follows if you are dealing wiht windows os:
"C:\\My Documents\\My Pictures\\My Picture.jpg"
----------------------------------------------------------------------
Comment By: chanueting (chanueting)
Date: 2010-06-16 02:21
Message:
python version.py missed: http://pywiki.pastey.net/137714
----------------------------------------------------------------------
You can respond by visiting:
https://sourceforge.net/tracker/?func=detail&atid=603138&aid=3016653&group_…
Patches item #3017517, was opened at 2010-06-17 13:38
Message generated for change (Tracker Item Submitted) made by lsundar
You can respond by visiting:
https://sourceforge.net/tracker/?func=detail&atid=603140&aid=3017517&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: BalaSundaraRaman L (lsundar)
Assigned to: Nobody/Anonymous (nobody)
Summary: cosmetic_changes.py to remove bad wikilinks
Initial Comment:
Translated articles created using http://translate.google.com/toolkit?hl=en suffer from one complex issue. It creates links to impossible pages in the target wiki. Let's take the example below:
( Excerpt from http://en.wikipedia.org/wiki/Corporate_governance )
A related but separate thread of discussions focuses on the impact of a corporate governance system in [[economic efficiency]], with a strong emphasis on shareholders' welfare.
This when translated to Tamil, for example, will have a single word for "in economic efficiency" and the tool wrongly links to that phrase. Since article title can't be of the form "in economic efficiency", it'll remain a red link forever. Since articles are littered with such red links, it's hard to read.
In view of the large-scale http://wikimania2010.wikimedia.org/wiki/Submissions/Google_translation project and the problems we faced ( http://wikimania2010.wikimedia.org/wiki/Submissions/A_Review_of_Google_Tran… ), I've developed a patch for cosmetic_changes.py which'll remove red links of the form [[some phrase]] leaving out cases where the label is different from the target. I've attached the patch as well. The changes by my bot running the modified code is at http://ta.wikipedia.org/wiki/Special:Contributions/SundarBot
If approved, I can give it to a dedicated bot operator with the translation team.
----------------------------------------------------------------------
You can respond by visiting:
https://sourceforge.net/tracker/?func=detail&atid=603140&aid=3017517&group_…
Bugs item #3016658, was opened at 2010-06-16 02:33
Message generated for change (Comment added) made by chanueting
You can respond by visiting:
https://sourceforge.net/tracker/?func=detail&atid=603138&aid=3016658&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: chanueting (chanueting)
Assigned to: xqt (xqt)
Summary: Token warning and unable to upload the file
Initial Comment:
I keep getting "WARNING: Token not found on commons:commons. You will not be able to edit any page." message even with "login.py -lang:commons -family:commons" used and the file cannot be uploaded with "Upload of xxx.svg probably failed. Above you see the HTML page which was returned by MediaWiki. Try again? "
----------------------------------------------------------------------
>Comment By: chanueting (chanueting)
Date: 2010-06-17 13:34
Message:
Thanks for your command. The output would be:
http://pywiki.pastey.net/137775
----------------------------------------------------------------------
Comment By: xqt (xqt)
Date: 2010-06-16 18:43
Message:
are you shure you are already logged in?
try
login.py -family:commons -lang:commons -test
for verify
----------------------------------------------------------------------
Comment By: chanueting (chanueting)
Date: 2010-06-16 02:38
Message:
python version.py missed again: http://pywiki.pastey.net/137714.
----------------------------------------------------------------------
You can respond by visiting:
https://sourceforge.net/tracker/?func=detail&atid=603138&aid=3016658&group_…
Bugs item #3016658, was opened at 2010-06-15 20:33
Message generated for change (Comment added) made by xqt
You can respond by visiting:
https://sourceforge.net/tracker/?func=detail&atid=603138&aid=3016658&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: Pending
Resolution: None
Priority: 5
Private: No
Submitted By: chanueting (chanueting)
>Assigned to: xqt (xqt)
Summary: Token warning and unable to upload the file
Initial Comment:
I keep getting "WARNING: Token not found on commons:commons. You will not be able to edit any page." message even with "login.py -lang:commons -family:commons" used and the file cannot be uploaded with "Upload of xxx.svg probably failed. Above you see the HTML page which was returned by MediaWiki. Try again? "
----------------------------------------------------------------------
>Comment By: xqt (xqt)
Date: 2010-06-16 12:43
Message:
are you shure you are already logged in?
try
login.py -family:commons -lang:commons -test
for verify
----------------------------------------------------------------------
Comment By: chanueting (chanueting)
Date: 2010-06-15 20:38
Message:
python version.py missed again: http://pywiki.pastey.net/137714.
----------------------------------------------------------------------
You can respond by visiting:
https://sourceforge.net/tracker/?func=detail&atid=603138&aid=3016658&group_…