Bugs item #3609794, was opened at 2013-04-02 06:20
Message generated for change (Comment added) made by xqt
You can respond by visiting:
https://sourceforge.net/tracker/?func=detail&atid=603138&aid=3609794&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: Duplicate
Priority: 5
Private: No
Submitted By: leeyc0 (leeyc0)
>Assigned to: xqt (xqt)
Summary: templatesWithParams parser bug (bug 3609685 follow-up)
Initial Comment:
https://sourceforge.net/tracker/?func=detail&aid=3609685&group_id=93107&ati…
(since I cannot reopen the bug, I opened a new bug instead)
I checked out r11322, but found that the bug is still there
----------------------------------------------------------------------
>Comment By: xqt (xqt)
Date: 2013-04-03 09:29
Message:
reopened bug #3609685. Thanks for reporting.
----------------------------------------------------------------------
You can respond by visiting:
https://sourceforge.net/tracker/?func=detail&atid=603138&aid=3609794&group_…
Bugs item #3609685, was opened at 2013-04-01 04:37
Message generated for change (Comment added) made by xqt
You can respond by visiting:
https://sourceforge.net/tracker/?func=detail&atid=603138&aid=3609685&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: Open
>Resolution: None
Priority: 5
Private: No
Submitted By: leeyc0 (leeyc0)
Assigned to: xqt (xqt)
Summary: templatesWithParams parser bug
Initial Comment:
version.py info:
Pywikipedia [http] trunk/pywikipedia (r11308, 2013/03/30, 16:56:02, OUTDATED)
Python 2.7.3 (default, Sep 26 2012, 21:51:14)
[GCC 4.7.2]
config-settings:
use_api = True
use_api_login = True
unicode test: ok
Below is the code snippet that demonstrates the bug:
#!/usr/bin/python
# -*- coding: utf-8 -*-
import wikipedia as pywikibot
site = pywikibot.getSite()
page = pywikibot.Page(site, "Template:001") # or some other page, the page itself is irrelevant here
pageText = u"{{monster | {{{1}}} | id=001}}"
print(page.templatesWithParams(pageText))
I found that the output is
[(u'1', [])]
instead of expected value
[(u'Monster', [u' {{{1}}}', u' id=001'])]
However, if I change pageText to
pageText = u"{{monster | abc | id=001}}"
Then the output would be
[(u'Monster', [u' abc ', u' id=001'])]
Which is correct.
----------------------------------------------------------------------
>Comment By: xqt (xqt)
Date: 2013-04-03 09:28
Message:
reopened due to bug #3609794
I only chanced textlib.extract_templates_and_params() which worked good for
me. But Page.templatesWithParams() still fails
https://sourceforge.net/tracker/?func=detail&aid=3609794&group_id=93107&ati…
----------------------------------------------------------------------
Comment By: xqt (xqt)
Date: 2013-04-01 08:07
Message:
fixed in r11319, r11320
----------------------------------------------------------------------
You can respond by visiting:
https://sourceforge.net/tracker/?func=detail&atid=603138&aid=3609685&group_…
Bugs item #3609816, was opened at 2013-04-02 11:46
Message generated for change (Comment added) made by legoktm
You can respond by visiting:
https://sourceforge.net/tracker/?func=detail&atid=603138&aid=3609816&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: Fixed
Priority: 5
Private: No
Submitted By: Nullzer0 (nu11zer0)
Assigned to: Legoktm (legoktm)
Summary: [rewrite branch] Can't edit Wikidata
Initial Comment:
When I tried to edit an item, it always appeared this warning; WARNING: API warning (main): Unrecognized parameter: 'ids'. The result is that a new item is created instead of editing an old item.
It is obvious that API doesn't support ids for action=wbeditentity, changing params['ids'] to params['id'] in function __defined_by makes me can edit an item properly again, but I don't know whether this change will break another function or not.
----
Pywikibot branches/rewrite/ (r11322, 2013/04/01, 16:43:54, 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-03 09:20
Message:
Commited by xqt in r11323.
----------------------------------------------------------------------
Comment By: Legoktm (legoktm)
Date: 2013-04-03 04:46
Message:
I'm having an issue commiting to SVN right now, so I've attached the patch
I will commit once it's fixed in case you need an urgent fix.
----------------------------------------------------------------------
Comment By: Nullzer0 (nu11zer0)
Date: 2013-04-03 03:05
Message:
I have sent the patch now. You can close this bug as duplicate.
----------------------------------------------------------------------
You can respond by visiting:
https://sourceforge.net/tracker/?func=detail&atid=603138&aid=3609816&group_…
Bugs item #3609816, was opened at 2013-04-02 11:46
Message generated for change (Comment added) made by legoktm
You can respond by visiting:
https://sourceforge.net/tracker/?func=detail&atid=603138&aid=3609816&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: Nullzer0 (nu11zer0)
>Assigned to: Legoktm (legoktm)
Summary: [rewrite branch] Can't edit Wikidata
Initial Comment:
When I tried to edit an item, it always appeared this warning; WARNING: API warning (main): Unrecognized parameter: 'ids'. The result is that a new item is created instead of editing an old item.
It is obvious that API doesn't support ids for action=wbeditentity, changing params['ids'] to params['id'] in function __defined_by makes me can edit an item properly again, but I don't know whether this change will break another function or not.
----
Pywikibot branches/rewrite/ (r11322, 2013/04/01, 16:43:54, 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-03 04:46
Message:
I'm having an issue commiting to SVN right now, so I've attached the patch
I will commit once it's fixed in case you need an urgent fix.
----------------------------------------------------------------------
Comment By: Nullzer0 (nu11zer0)
Date: 2013-04-03 03:05
Message:
I have sent the patch now. You can close this bug as duplicate.
----------------------------------------------------------------------
You can respond by visiting:
https://sourceforge.net/tracker/?func=detail&atid=603138&aid=3609816&group_…
Patches item #3609880, was opened at 2013-04-03 03:04
Message generated for change (Comment added) made by legoktm
You can respond by visiting:
https://sourceforge.net/tracker/?func=detail&atid=603140&aid=3609880&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: Rejected
Priority: 5
Private: No
Submitted By: Nullzer0 (nu11zer0)
Assigned to: Nobody/Anonymous (nobody)
Summary: patch for editing on Wikidata (rewrite branch)
Initial Comment:
I have already explained the problem at https://sourceforge.net/tracker/?func=detail&aid=3609816&group_id=93107&ati… . See there for the description.
Pywikibot branches/rewrite/ (r11322, 2013/04/01, 16:43:54, 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-03 04:07
Message:
Hi thanks for the patch.
I'm going to implement this a bit differently so it will be easier to
re-use in the future.
----------------------------------------------------------------------
You can respond by visiting:
https://sourceforge.net/tracker/?func=detail&atid=603140&aid=3609880&group_…
Bugs item #3609816, was opened at 2013-04-02 11:46
Message generated for change (Comment added) made by nu11zer0
You can respond by visiting:
https://sourceforge.net/tracker/?func=detail&atid=603138&aid=3609816&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: Nullzer0 (nu11zer0)
Assigned to: Nobody/Anonymous (nobody)
Summary: [rewrite branch] Can't edit Wikidata
Initial Comment:
When I tried to edit an item, it always appeared this warning; WARNING: API warning (main): Unrecognized parameter: 'ids'. The result is that a new item is created instead of editing an old item.
It is obvious that API doesn't support ids for action=wbeditentity, changing params['ids'] to params['id'] in function __defined_by makes me can edit an item properly again, but I don't know whether this change will break another function or not.
----
Pywikibot branches/rewrite/ (r11322, 2013/04/01, 16:43:54, ok)
Python 2.7.3 (default, Sep 26 2012, 21:53:58)
[GCC 4.7.2]
unicode test: ok
----------------------------------------------------------------------
>Comment By: Nullzer0 (nu11zer0)
Date: 2013-04-03 03:05
Message:
I have sent the patch now. You can close this bug as duplicate.
----------------------------------------------------------------------
You can respond by visiting:
https://sourceforge.net/tracker/?func=detail&atid=603138&aid=3609816&group_…
Patches item #3609880, was opened at 2013-04-03 03:04
Message generated for change (Tracker Item Submitted) made by nu11zer0
You can respond by visiting:
https://sourceforge.net/tracker/?func=detail&atid=603140&aid=3609880&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: Nullzer0 (nu11zer0)
Assigned to: Nobody/Anonymous (nobody)
Summary: patch for editing on Wikidata (rewrite branch)
Initial Comment:
I have already explained the problem at https://sourceforge.net/tracker/?func=detail&aid=3609816&group_id=93107&ati… . See there for the description.
Pywikibot branches/rewrite/ (r11322, 2013/04/01, 16:43:54, ok)
Python 2.7.3 (default, Sep 26 2012, 21:53:58)
[GCC 4.7.2]
unicode test: ok
----------------------------------------------------------------------
You can respond by visiting:
https://sourceforge.net/tracker/?func=detail&atid=603140&aid=3609880&group_…
Bugs item #3609816, was opened at 2013-04-02 11:46
Message generated for change (Tracker Item Submitted) made by nu11zer0
You can respond by visiting:
https://sourceforge.net/tracker/?func=detail&atid=603138&aid=3609816&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: Nullzer0 (nu11zer0)
Assigned to: Nobody/Anonymous (nobody)
Summary: [rewrite branch] Can't edit Wikidata
Initial Comment:
When I tried to edit an item, it always appeared this warning; WARNING: API warning (main): Unrecognized parameter: 'ids'. The result is that a new item is created instead of editing an old item.
It is obvious that API doesn't support ids for action=wbeditentity, changing params['ids'] to params['id'] in function __defined_by makes me can edit an item properly again, but I don't know whether this change will break another function or not.
----
Pywikibot branches/rewrite/ (r11322, 2013/04/01, 16:43:54, ok)
Python 2.7.3 (default, Sep 26 2012, 21:53:58)
[GCC 4.7.2]
unicode test: ok
----------------------------------------------------------------------
You can respond by visiting:
https://sourceforge.net/tracker/?func=detail&atid=603138&aid=3609816&group_…
Bugs item #3609794, was opened at 2013-04-02 06:20
Message generated for change (Tracker Item Submitted) made by leeyc0
You can respond by visiting:
https://sourceforge.net/tracker/?func=detail&atid=603138&aid=3609794&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: Open
Resolution: None
Priority: 5
Private: No
Submitted By: leeyc0 (leeyc0)
Assigned to: Nobody/Anonymous (nobody)
Summary: templatesWithParams parser bug (bug 3609685 follow-up)
Initial Comment:
https://sourceforge.net/tracker/?func=detail&aid=3609685&group_id=93107&ati…
(since I cannot reopen the bug, I opened a new bug instead)
I checked out r11322, but found that the bug is still there
----------------------------------------------------------------------
You can respond by visiting:
https://sourceforge.net/tracker/?func=detail&atid=603138&aid=3609794&group_…
Bugs item #3609685, was opened at 2013-04-01 04:37
Message generated for change (Comment added) made by xqt
You can respond by visiting:
https://sourceforge.net/tracker/?func=detail&atid=603138&aid=3609685&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: leeyc0 (leeyc0)
>Assigned to: xqt (xqt)
Summary: templatesWithParams parser bug
Initial Comment:
version.py info:
Pywikipedia [http] trunk/pywikipedia (r11308, 2013/03/30, 16:56:02, OUTDATED)
Python 2.7.3 (default, Sep 26 2012, 21:51:14)
[GCC 4.7.2]
config-settings:
use_api = True
use_api_login = True
unicode test: ok
Below is the code snippet that demonstrates the bug:
#!/usr/bin/python
# -*- coding: utf-8 -*-
import wikipedia as pywikibot
site = pywikibot.getSite()
page = pywikibot.Page(site, "Template:001") # or some other page, the page itself is irrelevant here
pageText = u"{{monster | {{{1}}} | id=001}}"
print(page.templatesWithParams(pageText))
I found that the output is
[(u'1', [])]
instead of expected value
[(u'Monster', [u' {{{1}}}', u' id=001'])]
However, if I change pageText to
pageText = u"{{monster | abc | id=001}}"
Then the output would be
[(u'Monster', [u' abc ', u' id=001'])]
Which is correct.
----------------------------------------------------------------------
>Comment By: xqt (xqt)
Date: 2013-04-01 08:07
Message:
fixed in r11319, r11320
----------------------------------------------------------------------
You can respond by visiting:
https://sourceforge.net/tracker/?func=detail&atid=603138&aid=3609685&group_…