Bugs item #3590676, was opened at 2012-11-28 05:00
Message generated for change (Comment added) made by nobody
You can respond by visiting:
https://sourceforge.net/tracker/?func=detail&atid=603138&aid=3590676&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: DixonD (dixond)
Assigned to: xqt (xqt)
Summary: Page._getVersionHistory returns only a part of a history
Initial Comment:
There is a bug in Page._getVersionHistory. It doesn't load the whole history it it is large. The problem in here (wikipedia.py):
if len(result['query']['pages'].values()[0]['revisions']) < revCount:
thisHistoryDone = True
I believe it should be as following:
if not getAll and len(result['query']['pages'].values()[0]['revisions']) >= revCount:
thisHistoryDone = True
Version.py:
Pywikipedia trunk/pywikipedia/ (r10745, 2012/11/20, 13:03:05)
Python 2.7.3 (default, Apr 10 2012, 23:31:26) [MSC v.1500 32 bit (Intel)]
config-settings:
use_api = True
use_api_login = True
unicode test: ok
----------------------------------------------------------------------
Comment By: Nobody/Anonymous (nobody)
Date: 2013-01-02 02:18
Message:
Any updates? Are you able to reproduce this issue?
----------------------------------------------------------------------
Comment By: DixonD (dixond)
Date: 2012-12-01 13:34
Message:
Changing the condition still returns 4250 entries for me (have you missed
the "not getAll and " part in my code?)
But if I use fullVersionHistory instead of getVersionHistory, it returns
only 192 entries for me. I.e. try the following code:
import wikipedia as pywikibot
p = pywikibot.Page('de', 'user talk:xqt')
h = p.fullVersionHistory(getAll=True)
print len(h)
----------------------------------------------------------------------
Comment By: xqt (xqt)
Date: 2012-12-01 13:22
Message:
first of all _getVersionHistory() is an internal method and you shouldn't
use it directly. Use getVersionHistory() instead. The the condition is
quite right. Try the following statements:
import pywikibot as pwb
p = pwb.Page('de', 'user talk:xqt')
h = p.getVersionHistory(getAll=True)
len(h)
which gives 4250 entries (yet).
Changing the condition will return 500 entries only.
----------------------------------------------------------------------
Comment By: DixonD (dixond)
Date: 2012-12-01 07:25
Message:
Yes, of course. It is quite obvious that the following code won't allow to
load the rest of revisions by setting thisHistoryDone to True:
if len(result['query']['pages'].values()[0]['revisions']) < revCount:
thisHistoryDone = True
Am I missing anything?
----------------------------------------------------------------------
Comment By: xqt (xqt)
Date: 2012-12-01 00:22
Message:
Are you sure that you have set getAll=True while invoking that method?
----------------------------------------------------------------------
You can respond by visiting:
https://sourceforge.net/tracker/?func=detail&atid=603138&aid=3590676&group_…
Bugs item #3599006, was opened at 2012-12-31 05:38
Message generated for change (Settings changed) made by xqt
You can respond by visiting:
https://sourceforge.net/tracker/?func=detail&atid=603138&aid=3599006&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: David Crochet (crochet_david)
Assigned to: xqt (xqt)
Summary: Outated family in wikivoyage
Initial Comment:
WARNING: Outdated family file wikivoyage: namespace['it'][6] is 'Image', but should be removed (default value 'File')
WARNING: Outdated family file wikivoyage: namespace['it'][7] is 'Image talk', but should be 'Discussioni file'
WARNING: Outdated family file wikivoyage: namespace['ru'][2] is 'Участница', but should be 'Участник'
WARNING: Outdated family file wikivoyage: namespace['ru'][3] is 'Обсуждение участницы', but should be 'Обсуждение участника'
WARNING: Outdated family file wikivoyage: namespace['ru'][6] is 'Image', but should be 'Файл'
WARNING: Outdated family file wikivoyage: namespace['ru'][7] is 'Image talk', but should be 'Обсуждение файла'
WARNING: Outdated family file wikivoyage: namespace['en'][6] is 'Image', but should be removed (default value 'File')
WARNING: Outdated family file wikivoyage: namespace['en'][7] is 'Image talk', but should be removed (default value 'File talk')
WARNING: Outdated family file wikivoyage: namespace['nl'][6] is 'Image', but should be 'Bestand'
WARNING: Outdated family file wikivoyage: namespace['nl'][7] is 'Image talk', but should be 'Overleg bestand'
WARNING: Outdated family file wikivoyage: namespace['sv'][6] is 'Image', but should be 'Fil'
WARNING: Outdated family file wikivoyage: namespace['sv'][7] is 'Image talk', but should be 'Fildiskussion'
WARNING: Outdated family file wikivoyage: namespace['sv'][9] is 'MediaWiki diskussion', but should be 'MediaWiki-diskussion'
WARNING: Outdated family file wikivoyage: namespace['sv'][13] is 'Hjälp diskussion', but should be 'Hjälpdiskussion'
WARNING: Outdated family file wikivoyage: namespace['de'][2] is 'Benutzerin', but should be 'Benutzer'
WARNING: Outdated family file wikivoyage: namespace['de'][3] is 'Benutzerin Diskussion', but should be 'Benutzer Diskussion'
WARNING: Outdated family file wikivoyage: namespace['de'][6] is 'Image', but should be 'Datei'
WARNING: Outdated family file wikivoyage: namespace['de'][7] is 'Image talk', but should be 'Datei Diskussion'
----------------------------------------------------------------------
Comment By: xqt (xqt)
Date: 2013-01-01 02:56
Message:
done in r10853
----------------------------------------------------------------------
You can respond by visiting:
https://sourceforge.net/tracker/?func=detail&atid=603138&aid=3599006&group_…
Feature Requests item #3599006, was opened at 2012-12-31 05:38
Message generated for change (Comment added) made by xqt
You can respond by visiting:
https://sourceforge.net/tracker/?func=detail&atid=603141&aid=3599006&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: David Crochet (crochet_david)
>Assigned to: xqt (xqt)
Summary: Outated family in wikivoyage
Initial Comment:
WARNING: Outdated family file wikivoyage: namespace['it'][6] is 'Image', but should be removed (default value 'File')
WARNING: Outdated family file wikivoyage: namespace['it'][7] is 'Image talk', but should be 'Discussioni file'
WARNING: Outdated family file wikivoyage: namespace['ru'][2] is 'Участница', but should be 'Участник'
WARNING: Outdated family file wikivoyage: namespace['ru'][3] is 'Обсуждение участницы', but should be 'Обсуждение участника'
WARNING: Outdated family file wikivoyage: namespace['ru'][6] is 'Image', but should be 'Файл'
WARNING: Outdated family file wikivoyage: namespace['ru'][7] is 'Image talk', but should be 'Обсуждение файла'
WARNING: Outdated family file wikivoyage: namespace['en'][6] is 'Image', but should be removed (default value 'File')
WARNING: Outdated family file wikivoyage: namespace['en'][7] is 'Image talk', but should be removed (default value 'File talk')
WARNING: Outdated family file wikivoyage: namespace['nl'][6] is 'Image', but should be 'Bestand'
WARNING: Outdated family file wikivoyage: namespace['nl'][7] is 'Image talk', but should be 'Overleg bestand'
WARNING: Outdated family file wikivoyage: namespace['sv'][6] is 'Image', but should be 'Fil'
WARNING: Outdated family file wikivoyage: namespace['sv'][7] is 'Image talk', but should be 'Fildiskussion'
WARNING: Outdated family file wikivoyage: namespace['sv'][9] is 'MediaWiki diskussion', but should be 'MediaWiki-diskussion'
WARNING: Outdated family file wikivoyage: namespace['sv'][13] is 'Hjälp diskussion', but should be 'Hjälpdiskussion'
WARNING: Outdated family file wikivoyage: namespace['de'][2] is 'Benutzerin', but should be 'Benutzer'
WARNING: Outdated family file wikivoyage: namespace['de'][3] is 'Benutzerin Diskussion', but should be 'Benutzer Diskussion'
WARNING: Outdated family file wikivoyage: namespace['de'][6] is 'Image', but should be 'Datei'
WARNING: Outdated family file wikivoyage: namespace['de'][7] is 'Image talk', but should be 'Datei Diskussion'
----------------------------------------------------------------------
>Comment By: xqt (xqt)
Date: 2013-01-01 02:56
Message:
done in r10853
----------------------------------------------------------------------
You can respond by visiting:
https://sourceforge.net/tracker/?func=detail&atid=603141&aid=3599006&group_…