Feature Requests item #3610372, was opened at 2013-04-09 04:43
Message generated for change (Tracker Item Submitted) made by n-fran
You can respond by visiting:
https://sourceforge.net/tracker/?func=detail&atid=603141&aid=3610372&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: Анима (n-fran)
Assigned to: Nobody/Anonymous (nobody)
Summary: Manual mode in fixing_redirects.py
Initial Comment:
It is necessary to enter opportunity manual, not automatic work for this script. Reasons:
1) Let's say B is the redirection, and A - article name. When the bot looks articles, he automatically corrects [[B]] on [[A|B]] that doesn't bring any benefit and can complicate reading wikitext for inexperienced users. In my opinion, in a case when [[B]] is a name of the redirection, the bot shouldn't make change on the page.
2) In the Russian Wikipedia it isn't recommended to correct the redirection in some cases. Probably, in other language sections there are similar rules.
http://ru.wikipedia.org/wiki/%D0%92%D0%B8%D0%BA%D0%B8%D0%BF%D0%B5%D0%B4%D0%…
Thanks.
----------------------------------------------------------------------
You can respond by visiting:
https://sourceforge.net/tracker/?func=detail&atid=603141&aid=3610372&group_…
Feature Requests item #3610291, was opened at 2013-04-08 00:53
Message generated for change (Comment added) made by n-fran
You can respond by visiting:
https://sourceforge.net/tracker/?func=detail&atid=603141&aid=3610291&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: Анима (n-fran)
Assigned to: Nobody/Anonymous (nobody)
Summary: humantitle.py
Initial Comment:
Automatic number of redirects to articles about people.
On the English Wikipedia made natural naming of articles about personalities - Name Family Name Middle name. For example, the name of the article Albert Einstein and Einstein Albert - it redirects.
http://en.wikipedia.org/wiki/Albert_Einsteinhttp://en.wikipedia.org/w/index.php?title=Einstein,_Albert&redirect=no
In the Russian Wikipedia, called the article in a different way: Family name, Name Middle name. That is, the article is called Einstein, Albert but not Albert Einstein.
http://ru.wikipedia.org/wiki/%D0%AD%D0%B9%D0%BD%D1%88%D1%82%D0%B5%D0%B9%D0%…http://ru.wikipedia.org/w/index.php?title=%D0%90%D0%BB%D1%8C%D0%B1%D0%B5%D1…
But it is not forbidden to do redirects. I would like to bot that could do the redirection. This algorithmic task.
The bot must be in manual mode. If the bot sees an article, containing the title in the upper-case letters and commas - if the article is called A, B C - he will offer redirects to the article title - B C A B A and A, B in the case, if the articles B C A and B does not already exist. For example: if name of page is Lenin, Vladimir Ilyich bot will propose options for create redirects Vladimir Ilyich Lenin Vladimir Lenin and Lenin, Vladimir.
If the bot finds the title of the article more than one capital letter and it is called A B C it offers options for redirects C, A B C, A and A C in the case if such items are not already exist. . For example: if name of page is Dmitri Ivanovich Mendeleev bot will propose options for create redirects Mendeleev, Dmitri Ivanovich Mendeleev, Dmitri and Dmitri Mendeleev.
Accordingly, the bot should offer redirects, if the article is called A B or B, A.
If the redirect is already there and it leads not to the article, with which we are working at the moment, the bot should offer options:
1) create instead of the redirecting page disambiguation
2) to put in the beginning of the article, which leads the redirect template {{Redirect}} or supersede the templates in other wiki-projects.
http://en.wikipedia.org/wiki/Template:Redirect
In more detail I can explain in IRC. Thanks.
----------------------------------------------------------------------
>Comment By: Анима (n-fran)
Date: 2013-04-09 04:15
Message:
For me has no value, to do a new script or to make changes in
capitalize_redirects.py. That it is better and simpler — to solve to
specialists programmers. However, capitalize_redirects.py does redirects
absolutely other plan. I don't know, whether it is possible to modify it
under that task which I offered. Thanks.
----------------------------------------------------------------------
Comment By: xqt (xqt)
Date: 2013-04-08 13:15
Message:
We have no humantitle.py in the framework. Do you suggest to implement it?
Or do you want to join a given script to the framework? There is already a
script for creating redirects which could be modified:
capitalize_redirects.py.
----------------------------------------------------------------------
You can respond by visiting:
https://sourceforge.net/tracker/?func=detail&atid=603141&aid=3610291&group_…
Feature Requests item #3610265, was opened at 2013-04-07 18:52
Message generated for change (Comment added) made by legoktm
You can respond by visiting:
https://sourceforge.net/tracker/?func=detail&atid=603141&aid=3610265&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: ChongDae (cdpark)
Assigned to: Nobody/Anonymous (nobody)
Summary: Support for Wikimedia Labs and Toolserver
Initial Comment:
1. Source directory repositiory
Split pywikipedia source and user config/script. See also https://wikitech.wikimedia.org/wiki/Nova_Resource_Talk:Bots#Pywikipediabot
Currently, pywikipedia imports(or includes) other file from (1) source code directory (2) current working directory (3) pywikipedia environment, depends on code. How about to support PYWIKIPEDIA_HOME or similar environment for source code repository.
2. Local mysql mirror support.
In WMLabs and toolserver, access of wikipedia mirror is available. Page.get() and pagegenerators can be use this information. (BTW, Page.put() should work to original site, not mirrors). It can be also useful for other mediawiki installs if admin runs some pywikipedia-based script (e.g. replace.py) for his own database.
----------------------------------------------------------------------
>Comment By: Legoktm (legoktm)
Date: 2013-04-08 17:37
Message:
#1: This is implemented in the rewrite branch, you just set the
PYWIKIBOT2_DIR variable to where your user-config is.
#2: I think this would be an interesting layer to add onto pywikipedia.
Probably can be done with a "MysqlSite" or something, since all queries
should get routed through that. DB access doesn't mean you have page text
access, so it isn't *that* useful.
----------------------------------------------------------------------
You can respond by visiting:
https://sourceforge.net/tracker/?func=detail&atid=603141&aid=3610265&group_…
Bugs item #3610296, was opened at 2013-04-08 03:26
Message generated for change (Settings changed) made by xqt
You can respond by visiting:
https://sourceforge.net/tracker/?func=detail&atid=603138&aid=3610296&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: ChongDae (cdpark)
Assigned to: xqt (xqt)
Summary: isDisambig() fails 2: Reopen ID: 3610288
Initial Comment:
The bug is not fixed in r11357. 'page.isDisambig()' also fails in this code.
---------------------------------------------
import pywikibot
site = pywikibot.getSite('en')
page = pywikibot.Page(site, u'Category:Soft drink user templates')
print page.isCategoryRedirect()
---------------------------------------------
----------------------------------------------------------------------
Comment By: xqt (xqt)
Date: 2013-04-08 14:11
Message:
Ah, no. it was the same as 3610288
----------------------------------------------------------------------
Comment By: xqt (xqt)
Date: 2013-04-08 14:09
Message:
This is a new bug and is distinguish from 3610288.
fixed in r11364
It would be a good idea to give us the complete traceback what makes it
easier to investigate in that bug.
----------------------------------------------------------------------
Comment By: Amir (amird)
Date: 2013-04-08 13:07
Message:
took one second to find out where the bug is i made r11361 to solve (I
tested it on the page you said)
but test it on some other pages you think and tell me there is any bugs or
not so i can close this
P.S. next time, ask me on user talk or e mail to reopen the bug instead of
making a duplicate bug report, Thanks :)
----------------------------------------------------------------------
Comment By: ChongDae (cdpark)
Date: 2013-04-08 08:24
Message:
amird: I'm using trunk branch.
----------------------------------------------------------------------
Comment By: Amir (amird)
Date: 2013-04-08 03:38
Message:
are you using the rewrite branch?
----------------------------------------------------------------------
You can respond by visiting:
https://sourceforge.net/tracker/?func=detail&atid=603138&aid=3610296&group_…
Bugs item #3610296, was opened at 2013-04-08 03:26
Message generated for change (Comment added) made by xqt
You can respond by visiting:
https://sourceforge.net/tracker/?func=detail&atid=603138&aid=3610296&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: ChongDae (cdpark)
Assigned to: xqt (xqt)
Summary: isDisambig() fails 2: Reopen ID: 3610288
Initial Comment:
The bug is not fixed in r11357. 'page.isDisambig()' also fails in this code.
---------------------------------------------
import pywikibot
site = pywikibot.getSite('en')
page = pywikibot.Page(site, u'Category:Soft drink user templates')
print page.isCategoryRedirect()
---------------------------------------------
----------------------------------------------------------------------
>Comment By: xqt (xqt)
Date: 2013-04-08 14:11
Message:
Ah, no. it was the same as 3610288
----------------------------------------------------------------------
Comment By: xqt (xqt)
Date: 2013-04-08 14:09
Message:
This is a new bug and is distinguish from 3610288.
fixed in r11364
It would be a good idea to give us the complete traceback what makes it
easier to investigate in that bug.
----------------------------------------------------------------------
Comment By: Amir (amird)
Date: 2013-04-08 13:07
Message:
took one second to find out where the bug is i made r11361 to solve (I
tested it on the page you said)
but test it on some other pages you think and tell me there is any bugs or
not so i can close this
P.S. next time, ask me on user talk or e mail to reopen the bug instead of
making a duplicate bug report, Thanks :)
----------------------------------------------------------------------
Comment By: ChongDae (cdpark)
Date: 2013-04-08 08:24
Message:
amird: I'm using trunk branch.
----------------------------------------------------------------------
Comment By: Amir (amird)
Date: 2013-04-08 03:38
Message:
are you using the rewrite branch?
----------------------------------------------------------------------
You can respond by visiting:
https://sourceforge.net/tracker/?func=detail&atid=603138&aid=3610296&group_…
Bugs item #3610296, was opened at 2013-04-08 03:26
Message generated for change (Comment added) made by xqt
You can respond by visiting:
https://sourceforge.net/tracker/?func=detail&atid=603138&aid=3610296&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: ChongDae (cdpark)
>Assigned to: xqt (xqt)
Summary: isDisambig() fails 2: Reopen ID: 3610288
Initial Comment:
The bug is not fixed in r11357. 'page.isDisambig()' also fails in this code.
---------------------------------------------
import pywikibot
site = pywikibot.getSite('en')
page = pywikibot.Page(site, u'Category:Soft drink user templates')
print page.isCategoryRedirect()
---------------------------------------------
----------------------------------------------------------------------
>Comment By: xqt (xqt)
Date: 2013-04-08 14:09
Message:
This is a new bug and is distinguish from 3610288.
fixed in r11364
It would be a good idea to give us the complete traceback what makes it
easier to investigate in that bug.
----------------------------------------------------------------------
Comment By: Amir (amird)
Date: 2013-04-08 13:07
Message:
took one second to find out where the bug is i made r11361 to solve (I
tested it on the page you said)
but test it on some other pages you think and tell me there is any bugs or
not so i can close this
P.S. next time, ask me on user talk or e mail to reopen the bug instead of
making a duplicate bug report, Thanks :)
----------------------------------------------------------------------
Comment By: ChongDae (cdpark)
Date: 2013-04-08 08:24
Message:
amird: I'm using trunk branch.
----------------------------------------------------------------------
Comment By: Amir (amird)
Date: 2013-04-08 03:38
Message:
are you using the rewrite branch?
----------------------------------------------------------------------
You can respond by visiting:
https://sourceforge.net/tracker/?func=detail&atid=603138&aid=3610296&group_…
Feature Requests item #3610291, was opened at 2013-04-08 00:53
Message generated for change (Comment added) made by xqt
You can respond by visiting:
https://sourceforge.net/tracker/?func=detail&atid=603141&aid=3610291&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: Анима (n-fran)
Assigned to: Nobody/Anonymous (nobody)
Summary: humantitle.py
Initial Comment:
Automatic number of redirects to articles about people.
On the English Wikipedia made natural naming of articles about personalities - Name Family Name Middle name. For example, the name of the article Albert Einstein and Einstein Albert - it redirects.
http://en.wikipedia.org/wiki/Albert_Einsteinhttp://en.wikipedia.org/w/index.php?title=Einstein,_Albert&redirect=no
In the Russian Wikipedia, called the article in a different way: Family name, Name Middle name. That is, the article is called Einstein, Albert but not Albert Einstein.
http://ru.wikipedia.org/wiki/%D0%AD%D0%B9%D0%BD%D1%88%D1%82%D0%B5%D0%B9%D0%…http://ru.wikipedia.org/w/index.php?title=%D0%90%D0%BB%D1%8C%D0%B1%D0%B5%D1…
But it is not forbidden to do redirects. I would like to bot that could do the redirection. This algorithmic task.
The bot must be in manual mode. If the bot sees an article, containing the title in the upper-case letters and commas - if the article is called A, B C - he will offer redirects to the article title - B C A B A and A, B in the case, if the articles B C A and B does not already exist. For example: if name of page is Lenin, Vladimir Ilyich bot will propose options for create redirects Vladimir Ilyich Lenin Vladimir Lenin and Lenin, Vladimir.
If the bot finds the title of the article more than one capital letter and it is called A B C it offers options for redirects C, A B C, A and A C in the case if such items are not already exist. . For example: if name of page is Dmitri Ivanovich Mendeleev bot will propose options for create redirects Mendeleev, Dmitri Ivanovich Mendeleev, Dmitri and Dmitri Mendeleev.
Accordingly, the bot should offer redirects, if the article is called A B or B, A.
If the redirect is already there and it leads not to the article, with which we are working at the moment, the bot should offer options:
1) create instead of the redirecting page disambiguation
2) to put in the beginning of the article, which leads the redirect template {{Redirect}} or supersede the templates in other wiki-projects.
http://en.wikipedia.org/wiki/Template:Redirect
In more detail I can explain in IRC. Thanks.
----------------------------------------------------------------------
>Comment By: xqt (xqt)
Date: 2013-04-08 13:15
Message:
We have no humantitle.py in the framework. Do you suggest to implement it?
Or do you want to join a given script to the framework? There is already a
script for creating redirects which could be modified:
capitalize_redirects.py.
----------------------------------------------------------------------
You can respond by visiting:
https://sourceforge.net/tracker/?func=detail&atid=603141&aid=3610291&group_…
Bugs item #3610296, was opened at 2013-04-08 03:26
Message generated for change (Comment added) made by amird
You can respond by visiting:
https://sourceforge.net/tracker/?func=detail&atid=603138&aid=3610296&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: ChongDae (cdpark)
>Assigned to: Amir (amird)
Summary: isDisambig() fails 2: Reopen ID: 3610288
Initial Comment:
The bug is not fixed in r11357. 'page.isDisambig()' also fails in this code.
---------------------------------------------
import pywikibot
site = pywikibot.getSite('en')
page = pywikibot.Page(site, u'Category:Soft drink user templates')
print page.isCategoryRedirect()
---------------------------------------------
----------------------------------------------------------------------
>Comment By: Amir (amird)
Date: 2013-04-08 13:07
Message:
took one second to find out where the bug is i made r11361 to solve (I
tested it on the page you said)
but test it on some other pages you think and tell me there is any bugs or
not so i can close this
P.S. next time, ask me on user talk or e mail to reopen the bug instead of
making a duplicate bug report, Thanks :)
----------------------------------------------------------------------
Comment By: ChongDae (cdpark)
Date: 2013-04-08 08:24
Message:
amird: I'm using trunk branch.
----------------------------------------------------------------------
Comment By: Amir (amird)
Date: 2013-04-08 03:38
Message:
are you using the rewrite branch?
----------------------------------------------------------------------
You can respond by visiting:
https://sourceforge.net/tracker/?func=detail&atid=603138&aid=3610296&group_…
Bugs item #3610296, was opened at 2013-04-08 03:26
Message generated for change (Comment added) made by cdpark
You can respond by visiting:
https://sourceforge.net/tracker/?func=detail&atid=603138&aid=3610296&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: ChongDae (cdpark)
Assigned to: Nobody/Anonymous (nobody)
Summary: isDisambig() fails 2: Reopen ID: 3610288
Initial Comment:
The bug is not fixed in r11357. 'page.isDisambig()' also fails in this code.
---------------------------------------------
import pywikibot
site = pywikibot.getSite('en')
page = pywikibot.Page(site, u'Category:Soft drink user templates')
print page.isCategoryRedirect()
---------------------------------------------
----------------------------------------------------------------------
>Comment By: ChongDae (cdpark)
Date: 2013-04-08 08:24
Message:
amird: I'm using trunk branch.
----------------------------------------------------------------------
Comment By: Amir (amird)
Date: 2013-04-08 03:38
Message:
are you using the rewrite branch?
----------------------------------------------------------------------
You can respond by visiting:
https://sourceforge.net/tracker/?func=detail&atid=603138&aid=3610296&group_…
Patches item #3610302, was opened at 2013-04-08 05:22
Message generated for change (Comment added) made by legoktm
You can respond by visiting:
https://sourceforge.net/tracker/?func=detail&atid=603140&aid=3610302&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: Nobody/Anonymous (nobody)
>Assigned to: Legoktm (legoktm)
Summary: Not load unnecessary data in token()
Initial Comment:
In token(), It queries info and *all* revisions of a page. Querying all revisions is too expensive and unnecessary. For example, if I just want to process the last revision of several pages and put them back, with the old code, it loads all revisions when putting. It makes putting in rewrite branch spend time about 10x compared to that in the trunk.
The patch I am presenting just do not load revisions. It shouldn't break other functions since needed data has included in the info of a page.
----
Pywikibot branches/rewrite/ (r11357, 2013/04/07, 14:50:30, ok)
Python 2.7.3 (default, Sep 26 2012, 21:53:58)
[GCC 4.7.2]
unicode test: ok
----------------------------------------------------------------------
>Comment By: Legoktm (legoktm)
Date: 2013-04-08 05:59
Message:
Committed in r11359, thanks.
I do agree that token() does need a re-think, it probably should be using a
straight query rather than a generator, we also should be caching tokens
per login session. Gonna leave this open for now so it can be properly
fixed.
----------------------------------------------------------------------
Comment By: Nullzer0 (nu11zer0)
Date: 2013-04-08 05:28
Message:
I forgot to login again, sorry.
Anyway, I think that token() should be rewrited. Its function should be
restrict to just obtain the token. If we want lastrevid or other
informations, it should place somewhere else. This will make token not bind
to a page.
----------------------------------------------------------------------
You can respond by visiting:
https://sourceforge.net/tracker/?func=detail&atid=603140&aid=3610302&group_…