Feature Requests item #3586247, was opened at 2012-11-11 12:39
Message generated for change (Tracker Item Submitted) made by jandudik
You can respond by visiting:
https://sourceforge.net/tracker/?func=detail&atid=603141&aid=3586247&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: Open
Resolution: None
Priority: 5
Private: No
Submitted By: JAn (jandudik)
Assigned to: Nobody/Anonymous (nobody)
Summary: Wikidata support
Initial Comment:
It would be very useful if bot when updating interwiki links will update (or create) the item on wikidata too.
----------------------------------------------------------------------
You can respond by visiting:
https://sourceforge.net/tracker/?func=detail&atid=603141&aid=3586247&group_…
Bugs item #3579749, was opened at 2012-10-24 05:56
Message generated for change (Comment added) made by xqt
You can respond by visiting:
https://sourceforge.net/tracker/?func=detail&atid=603138&aid=3579749&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: Amir (amird)
>Assigned to: Nobody/Anonymous (nobody)
Summary: A bug in http.py
Initial Comment:
I ran a code for changing in wikidata but after the edit this error occurs:
File "/home/amir/wikipedia.py", line 2013, in put
newPage, self.site().getToken(sysop = sysop), sysop = sysop, botflag=botflag, maxTries=maxTries, wikidata=wikidata)
File "/home/amir/wikipedia.py", line 2151, in _putPage
if response.code == 500:
File "/home/amir/pywikibot/comms/http.py", line 50, in __getattr__
return self._call(name, attr, *args, **kwds)
NameError: global name 'args' is not defined
----------------------------------------------------------------------
>Comment By: xqt (xqt)
Date: 2012-11-11 12:04
Message:
reverted
----------------------------------------------------------------------
Comment By: xqt (xqt)
Date: 2012-11-11 11:58
Message:
fixed in r10771. Could you please verify.
----------------------------------------------------------------------
Comment By: Dr. Trigon (drtrigon)
Date: 2012-10-26 11:16
Message:
Could you please provide some information on how to reproduce this error?
----------------------------------------------------------------------
You can respond by visiting:
https://sourceforge.net/tracker/?func=detail&atid=603138&aid=3579749&group_…
Bugs item #3579749, was opened at 2012-10-24 05:56
Message generated for change (Comment added) made by xqt
You can respond by visiting:
https://sourceforge.net/tracker/?func=detail&atid=603138&aid=3579749&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: Amir (amird)
>Assigned to: xqt (xqt)
Summary: A bug in http.py
Initial Comment:
I ran a code for changing in wikidata but after the edit this error occurs:
File "/home/amir/wikipedia.py", line 2013, in put
newPage, self.site().getToken(sysop = sysop), sysop = sysop, botflag=botflag, maxTries=maxTries, wikidata=wikidata)
File "/home/amir/wikipedia.py", line 2151, in _putPage
if response.code == 500:
File "/home/amir/pywikibot/comms/http.py", line 50, in __getattr__
return self._call(name, attr, *args, **kwds)
NameError: global name 'args' is not defined
----------------------------------------------------------------------
>Comment By: xqt (xqt)
Date: 2012-11-11 11:58
Message:
fixed in r10771. Could you please verify.
----------------------------------------------------------------------
Comment By: Dr. Trigon (drtrigon)
Date: 2012-10-26 11:16
Message:
Could you please provide some information on how to reproduce this error?
----------------------------------------------------------------------
You can respond by visiting:
https://sourceforge.net/tracker/?func=detail&atid=603138&aid=3579749&group_…
Patches item #3586068, was opened at 2012-11-10 10:31
Message generated for change (Comment added) made by xqt
You can respond by visiting:
https://sourceforge.net/tracker/?func=detail&atid=603140&aid=3586068&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: YFdyh000 (yfdyh000)
>Assigned to: xqt (xqt)
Summary: getPatrolToken in wikipedia.py
Initial Comment:
update getPatrolToken in wikipedia.py
----------------------------------------------------------------------
>Comment By: xqt (xqt)
Date: 2012-11-11 00:40
Message:
done in r10690
----------------------------------------------------------------------
You can respond by visiting:
https://sourceforge.net/tracker/?func=detail&atid=603140&aid=3586068&group_…
Patches item #3586068, was opened at 2012-11-10 10:31
Message generated for change (Tracker Item Submitted) made by yfdyh000
You can respond by visiting:
https://sourceforge.net/tracker/?func=detail&atid=603140&aid=3586068&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: YFdyh000 (yfdyh000)
Assigned to: Nobody/Anonymous (nobody)
Summary: getPatrolToken in wikipedia.py
Initial Comment:
update getPatrolToken in wikipedia.py
----------------------------------------------------------------------
You can respond by visiting:
https://sourceforge.net/tracker/?func=detail&atid=603140&aid=3586068&group_…
Bugs item #3585132, was opened at 2012-11-07 04:36
Message generated for change (Comment added) made by xqt
You can respond by visiting:
https://sourceforge.net/tracker/?func=detail&atid=603138&aid=3585132&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: trunk
Status: Open
Resolution: None
Priority: 5
Private: No
Submitted By: Throwy (throwy)
Assigned to: Nobody/Anonymous (nobody)
Summary: Wikia returns cached pages for get.py editarticle.py
Initial Comment:
get.py and editarticle.py use a method of page fetching that results in cached pages from Wikia
replace.py uses the pagegenerator method, which fetches the latest version of pages from Wikia
The issue is probably a Wikia issue, but it would be nice to implement a workaround in pywikipediabot.
Steps to reproduce:
Create or edit a page on a Wikia wiki. Fetch the page with editarticle.py or get.py . The bot should fetch a cached version. Edit the page with replace.py and the bot should fetch the most recent version, which is the expected behavior.
Comments:
Someone had already solved this issue for me on #pywikipediabot on freenode. It requires very little alteration to get.py and editarticle.py. Unfortunately I did not back up or document the changes before updating pywikipediabot from SVN and the changes were lost.
----
$ python version.py
Pywikipedia [http] trunk/pywikipedia (r10663, 2012/11/04, 19:53:31)
Python 2.7.3 (v2.7.3:70274d53c1dd, Apr 9 2012, 20:52:43)
[GCC 4.2.1 (Apple Inc. build 5666) (dot 3)]
config-settings:
use_api = True
use_api_login = True
unicode test: ok
----------------------------------------------------------------------
>Comment By: xqt (xqt)
Date: 2012-11-10 02:31
Message:
Yes this path retrieves the page content via special:import instead of API
because API bulk call is not approved for the trunk release. Thus this
patch wouldn't work for rewrite branch.
Anyway it is not clear for me, why the api returns the data by browser call
but not via bot frameworks query.
----------------------------------------------------------------------
Comment By: Throwy (throwy)
Date: 2012-11-09 10:11
Message:
I found the patched editarticle.py on pastebin, woohoo!
<pre>33a34
> import pagegenerators
157c158
< self.page = pywikibot.Page(site, pageTitle)
---
> self.page =
iter(pagegenerators.PreloadingGenerator([pywikibot.Page(site,
pageTitle)])).next()</pre>
----------------------------------------------------------------------
Comment By: xqt (xqt)
Date: 2012-11-07 05:56
Message:
Some remarks:
I changed the hostname() in family file to "mlp.wikia.com" and used the
following statements:
import wikipedia as wp
s = wp.getSite('wikia', 'wikia')
p = wp.Page(s, 'Template:Date/doc')
t = p.get(force=True)
result:
Traceback (most recent call last):
File "<pyshell#69>", line 1, in <module>
t = p.get(force=True)
File "wikipedia.py", line 699, in get
expandtemplates = expandtemplates)
File "wikipedia.py", line 800, in _getEditPage
"Page does not exist. In rare cases, if you are certain the page does
exist, look into overriding family.RversionTab")
NoPage: (wikia:wikia, u'[[wikia:Template:Date/doc]]', 'Page does not exist.
In rare cases, if you are certain the page does exist, look into overriding
family.RversionTab')
the query param dict was:
{'inprop': ['protection', 'subjectid'], 'rvprop': ['content', 'ids',
'flags', 'timestamp', 'user', 'comment', 'size'], 'prop': ['revisions',
'info'], 'titles': u'Template:Date/doc', 'rvlimit': 1, 'action': 'query'}
the result data dict was:
{u'query': {u'pages': {u'-1': {u'protection': [], u'ns': 10, u'missing':
u'', u'title': u'Template:Date/doc'}}}}
and last the url is:
/api.php?inprop=protection%7Csubjectid&format=json&rvprop=content%7Cids%7Cflags%7Ctimestamp%7Cuser%7Ccomment%7Csize&prop=revisions%7Cinfo&titles=Template%3ADate/doc&rvlimit=1&action=query
which gives the right result via browser e.g.:
http://mlp.wikia.com/api.php?inprop=protection%7Csubjectid&format=json&rvpr…
----------------------------------------------------------------------
You can respond by visiting:
https://sourceforge.net/tracker/?func=detail&atid=603138&aid=3585132&group_…
Patches item #3585778, was opened at 2012-11-09 07:50
Message generated for change (Comment added) made by xqt
You can respond by visiting:
https://sourceforge.net/tracker/?func=detail&atid=603140&aid=3585778&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: Closed
Resolution: None
Priority: 5
Private: No
Submitted By: Legoktm (legoktm)
>Assigned to: xqt (xqt)
Summary: namespaces in Category.articles isn't recursive
Initial Comment:
When setting a namespaces= value in pywikibot.Category.articles(recursive=True), that value isn't passed on recursively.
Pywikibot branches/rewrite/ (r10680, 2012/11/08, 14:04:42)
Python 2.7.3 (default, Jul 29 2012, 23:31:23)
[GCC 4.2.1 Compatible Apple Clang 4.0 ((tags/Apple/clang-421.0.57))]
unicode test: ok
----------------------------------------------------------------------
>Comment By: xqt (xqt)
Date: 2012-11-10 02:23
Message:
done in r10681
----------------------------------------------------------------------
You can respond by visiting:
https://sourceforge.net/tracker/?func=detail&atid=603140&aid=3585778&group_…
Bugs item #3585132, was opened at 2012-11-07 04:36
Message generated for change (Comment added) made by throwy
You can respond by visiting:
https://sourceforge.net/tracker/?func=detail&atid=603138&aid=3585132&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: trunk
Status: Open
Resolution: None
Priority: 5
Private: No
Submitted By: Throwy (throwy)
Assigned to: Nobody/Anonymous (nobody)
Summary: Wikia returns cached pages for get.py editarticle.py
Initial Comment:
get.py and editarticle.py use a method of page fetching that results in cached pages from Wikia
replace.py uses the pagegenerator method, which fetches the latest version of pages from Wikia
The issue is probably a Wikia issue, but it would be nice to implement a workaround in pywikipediabot.
Steps to reproduce:
Create or edit a page on a Wikia wiki. Fetch the page with editarticle.py or get.py . The bot should fetch a cached version. Edit the page with replace.py and the bot should fetch the most recent version, which is the expected behavior.
Comments:
Someone had already solved this issue for me on #pywikipediabot on freenode. It requires very little alteration to get.py and editarticle.py. Unfortunately I did not back up or document the changes before updating pywikipediabot from SVN and the changes were lost.
----
$ python version.py
Pywikipedia [http] trunk/pywikipedia (r10663, 2012/11/04, 19:53:31)
Python 2.7.3 (v2.7.3:70274d53c1dd, Apr 9 2012, 20:52:43)
[GCC 4.2.1 (Apple Inc. build 5666) (dot 3)]
config-settings:
use_api = True
use_api_login = True
unicode test: ok
----------------------------------------------------------------------
>Comment By: Throwy (throwy)
Date: 2012-11-09 10:11
Message:
I found the patched editarticle.py on pastebin, woohoo!
<pre>33a34
> import pagegenerators
157c158
< self.page = pywikibot.Page(site, pageTitle)
---
> self.page =
iter(pagegenerators.PreloadingGenerator([pywikibot.Page(site,
pageTitle)])).next()</pre>
----------------------------------------------------------------------
Comment By: xqt (xqt)
Date: 2012-11-07 05:56
Message:
Some remarks:
I changed the hostname() in family file to "mlp.wikia.com" and used the
following statements:
import wikipedia as wp
s = wp.getSite('wikia', 'wikia')
p = wp.Page(s, 'Template:Date/doc')
t = p.get(force=True)
result:
Traceback (most recent call last):
File "<pyshell#69>", line 1, in <module>
t = p.get(force=True)
File "wikipedia.py", line 699, in get
expandtemplates = expandtemplates)
File "wikipedia.py", line 800, in _getEditPage
"Page does not exist. In rare cases, if you are certain the page does
exist, look into overriding family.RversionTab")
NoPage: (wikia:wikia, u'[[wikia:Template:Date/doc]]', 'Page does not exist.
In rare cases, if you are certain the page does exist, look into overriding
family.RversionTab')
the query param dict was:
{'inprop': ['protection', 'subjectid'], 'rvprop': ['content', 'ids',
'flags', 'timestamp', 'user', 'comment', 'size'], 'prop': ['revisions',
'info'], 'titles': u'Template:Date/doc', 'rvlimit': 1, 'action': 'query'}
the result data dict was:
{u'query': {u'pages': {u'-1': {u'protection': [], u'ns': 10, u'missing':
u'', u'title': u'Template:Date/doc'}}}}
and last the url is:
/api.php?inprop=protection%7Csubjectid&format=json&rvprop=content%7Cids%7Cflags%7Ctimestamp%7Cuser%7Ccomment%7Csize&prop=revisions%7Cinfo&titles=Template%3ADate/doc&rvlimit=1&action=query
which gives the right result via browser e.g.:
http://mlp.wikia.com/api.php?inprop=protection%7Csubjectid&format=json&rvpr…
----------------------------------------------------------------------
You can respond by visiting:
https://sourceforge.net/tracker/?func=detail&atid=603138&aid=3585132&group_…
Patches item #3585778, was opened at 2012-11-09 07:50
Message generated for change (Tracker Item Submitted) made by legoktm
You can respond by visiting:
https://sourceforge.net/tracker/?func=detail&atid=603140&aid=3585778&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: Legoktm (legoktm)
Assigned to: Nobody/Anonymous (nobody)
Summary: namespaces in Category.articles isn't recursive
Initial Comment:
When setting a namespaces= value in pywikibot.Category.articles(recursive=True), that value isn't passed on recursively.
Pywikibot branches/rewrite/ (r10680, 2012/11/08, 14:04:42)
Python 2.7.3 (default, Jul 29 2012, 23:31:23)
[GCC 4.2.1 Compatible Apple Clang 4.0 ((tags/Apple/clang-421.0.57))]
unicode test: ok
----------------------------------------------------------------------
You can respond by visiting:
https://sourceforge.net/tracker/?func=detail&atid=603140&aid=3585778&group_…
Bugs item #1924322, was opened at 2008-03-24 06:19
Message generated for change (Comment added) made by nobody
You can respond by visiting:
https://sourceforge.net/tracker/?func=detail&atid=603138&aid=1924322&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: Open
Resolution: Accepted
Priority: 5
Private: No
Submitted By: Nobody/Anonymous (nobody)
Assigned to: Doug (bewareofdoug)
Summary: interwiki links on subpages in templates
Initial Comment:
In English and some other major wikipedias interwiki links are placed on /doc subpage (or whatever it's called) in templates. Interwiki bot should check if such a page exists and not place interwiki links on main template page but place/update links on that subpage. Otherwise, everytime a bot places interwiki on a template with this structure, the main template page needs to be cleaned and interwiki links moved to a subpage manually
----------------------------------------------------------------------
Comment By: Nobody/Anonymous (nobody)
Date: 2012-11-08 09:04
Message:
This design is wicked! You certainly know how to keep a reader entertained.
Between your wit and your videos, I was almost moved to start my own blog
(well, almost...HaHa!) Fantastic job. I really enjoyed what you had to say,
and more than that, how you presented it. Too cool!
cheap north face coats http://xebxkizzya.snappages.com/blog.htm
----------------------------------------------------------------------
Comment By: Nobody/Anonymous (nobody)
Date: 2012-11-08 07:10
Message:
Hey there! Someone in my Myspace group shared this website with us so I
came to look it over. I'm definitely enjoying the information. I'm
book-marking and will be tweeting this to my followers! Wonderful blog and
terrific design and style.
north face jackets on sale http://tbvfdexb8599.webgarden.com/
----------------------------------------------------------------------
Comment By: justincheng (justincheng)
Date: 2012-05-01 02:15
Message:
How about do like this:
1.find the {{doc}}...for example
2.treat as redirect and go to XXX/document and find if exist.
3.If not try /doc...ect...running through a list
4.Go to sub-pages
Just giving an idea as treated sub-pages *similar* to redirect...
----------------------------------------------------------------------
Comment By: xqt (xqt)
Date: 2011-12-30 03:33
Message:
this tracker is still valid. Bots only keeps track of these subpaces and
prevents placing iw to the main page but does not place interwiki links on
these subpage. But it should.
btw please do not assign the tracker to you until you'll fix it.
----------------------------------------------------------------------
Comment By: Doug (bewareofdoug)
Date: 2011-12-30 03:04
Message:
Is this still valid? I thought we had fixed this behavior and interwiki.py
was now able to work with /doc links. I will test this but I'm pretty sure
it's solved so if someone has the revision number where it was fixed that
would be great to note here.
----------------------------------------------------------------------
Comment By: xqt (xqt)
Date: 2009-12-11 02:27
Message:
{{template doc}} and the other redirects at en-wiki will be added with next
revision (might be r7762)
----------------------------------------------------------------------
Comment By: JAn (jandudik)
Date: 2009-12-10 08:17
Message:
Please, add redirects to {{Documentation}} too
http://en.wikipedia.org/w/index.php?title=Template:4TeamRR&diff=prev&oldid=…
there are 4 or 5 redirects to this template in en:
----------------------------------------------------------------------
Comment By: xqt (xqt)
Date: 2009-12-10 03:58
Message:
Behaviour changed. Interwiki bot doesn't change templates with
{{document}}-templates inside. This also works for the corresponding
template on de: and cs:-wiki.
----------------------------------------------------------------------
Comment By: xqt (xqt)
Date: 2009-08-23 13:07
Message:
On dewiki templates can contain {{Dokumentation}} which will include
interwikis listed on subpage /Meta
----------------------------------------------------------------------
Comment By: Nobody/Anonymous (nobody)
Date: 2008-04-25 14:57
Message:
Logged In: NO
A few pages in the project namespace also use subpages for headers and
interwiki links. Subpages usually have <includeonly> around the iw and
category links, interwiki bots should leave that in place.
----------------------------------------------------------------------
Comment By: Nobody/Anonymous (nobody)
Date: 2008-04-17 13:13
Message:
Logged In: NO
Every like it about his problem.
If there is a page with subpages in templates. The interwiki links on the
subpages needs to places in inside the nowiki section. So if the last word
of the page is </nowiki> the interwiki link needs to be placed before the
</nowiki> tag.
I'm the operator of the CarsracBot with its home on the nl.wikipedia.org
And I have seen this behaviour on that articles where
en:list_of_asteroides/1101-1200 is a part of.
----------------------------------------------------------------------
You can respond by visiting:
https://sourceforge.net/tracker/?func=detail&atid=603138&aid=1924322&group_…