lists.wikimedia.org
Sign In
Sign Up
Sign In
Sign Up
Manage this list
×
Keyboard Shortcuts
Thread View
j
: Next unread message
k
: Previous unread message
j a
: Jump to all threads
j l
: Jump to MailingList overview
2024
December
November
October
September
August
July
June
May
April
March
February
January
2023
December
November
October
September
August
July
June
May
April
March
February
January
2022
December
November
October
September
August
July
June
May
April
March
February
January
2021
December
November
October
September
August
July
June
May
April
March
February
January
2020
December
November
October
September
August
July
June
May
April
March
February
January
2019
December
November
October
September
August
July
June
May
April
March
February
January
2018
December
November
October
September
August
July
June
May
April
March
February
January
2017
December
November
October
September
August
July
June
May
April
March
February
January
2016
December
November
October
September
August
July
June
May
April
March
February
January
2015
December
November
October
September
August
July
June
May
April
March
February
January
2014
December
November
October
September
August
July
June
May
April
March
February
January
2013
December
November
October
September
August
July
List overview
Download
Pywikibot-commits
February 2015
----- 2024 -----
December 2024
November 2024
October 2024
September 2024
August 2024
July 2024
June 2024
May 2024
April 2024
March 2024
February 2024
January 2024
----- 2023 -----
December 2023
November 2023
October 2023
September 2023
August 2023
July 2023
June 2023
May 2023
April 2023
March 2023
February 2023
January 2023
----- 2022 -----
December 2022
November 2022
October 2022
September 2022
August 2022
July 2022
June 2022
May 2022
April 2022
March 2022
February 2022
January 2022
----- 2021 -----
December 2021
November 2021
October 2021
September 2021
August 2021
July 2021
June 2021
May 2021
April 2021
March 2021
February 2021
January 2021
----- 2020 -----
December 2020
November 2020
October 2020
September 2020
August 2020
July 2020
June 2020
May 2020
April 2020
March 2020
February 2020
January 2020
----- 2019 -----
December 2019
November 2019
October 2019
September 2019
August 2019
July 2019
June 2019
May 2019
April 2019
March 2019
February 2019
January 2019
----- 2018 -----
December 2018
November 2018
October 2018
September 2018
August 2018
July 2018
June 2018
May 2018
April 2018
March 2018
February 2018
January 2018
----- 2017 -----
December 2017
November 2017
October 2017
September 2017
August 2017
July 2017
June 2017
May 2017
April 2017
March 2017
February 2017
January 2017
----- 2016 -----
December 2016
November 2016
October 2016
September 2016
August 2016
July 2016
June 2016
May 2016
April 2016
March 2016
February 2016
January 2016
----- 2015 -----
December 2015
November 2015
October 2015
September 2015
August 2015
July 2015
June 2015
May 2015
April 2015
March 2015
February 2015
January 2015
----- 2014 -----
December 2014
November 2014
October 2014
September 2014
August 2014
July 2014
June 2014
May 2014
April 2014
March 2014
February 2014
January 2014
----- 2013 -----
December 2013
November 2013
October 2013
September 2013
August 2013
July 2013
pywikibot-commits@lists.wikimedia.org
2 participants
126 discussions
Start a n
N
ew thread
Fixed: wikimedia/pywikibot-core#1977 (master - 2768e90)
by Travis CI
11 Feb '15
11 Feb '15
Build Update for wikimedia/pywikibot-core ------------------------------------- Build: #1977 Status: Fixed Duration: 50 minutes and 51 seconds Commit: 2768e90 (master) Author: jenkins-bot Message: Merge "HTTP binary file tests" View the changeset:
https://github.com/wikimedia/pywikibot-core/compare/d797be260fe2...2768e90e…
View the full build log and details:
https://travis-ci.org/wikimedia/pywikibot-core/builds/50342295
-- You can configure recipients for build notifications in your .travis.yml file. See
http://docs.travis-ci.com/user/notifications
1
0
0
0
Passed: wikimedia/pywikibot-core#1976 (master - d797be2)
by Travis CI
11 Feb '15
11 Feb '15
Build Update for wikimedia/pywikibot-core ------------------------------------- Build: #1976 Status: Passed Duration: 50 minutes and 33 seconds Commit: d797be2 (master) Author: jenkins-bot Message: Merge "Use Page.revisions() instead of getVersionHistory() method" View the changeset:
https://github.com/wikimedia/pywikibot-core/compare/9b35dcd09bfd...d797be26…
View the full build log and details:
https://travis-ci.org/wikimedia/pywikibot-core/builds/50338022
-- You can configure recipients for build notifications in your .travis.yml file. See
http://docs.travis-ci.com/user/notifications
1
0
0
0
Broken: wikimedia/pywikibot-core#1975 (master - 9b35dcd)
by Travis CI
11 Feb '15
11 Feb '15
Build Update for wikimedia/pywikibot-core ------------------------------------- Build: #1975 Status: Broken Duration: 48 minutes and 27 seconds Commit: 9b35dcd (master) Author: jenkins-bot Message: Merge "[bugfix] Fix UnicodeEncodeError" View the changeset:
https://github.com/wikimedia/pywikibot-core/compare/a933d50d9c62...9b35dcd0…
View the full build log and details:
https://travis-ci.org/wikimedia/pywikibot-core/builds/50337444
-- You can configure recipients for build notifications in your .travis.yml file. See
http://docs.travis-ci.com/user/notifications
1
0
0
0
[Gerrit] HTTP binary file tests - change (pywikibot/core)
by jenkins-bot (Code Review)
11 Feb '15
11 Feb '15
jenkins-bot has submitted this change and it was merged. Change subject: HTTP binary file tests ...................................................................... HTTP binary file tests Test getting binary files with each layer of http handling in pywikibot. Change-Id: I1f413418461a1dc8e47b1f6b0cfbee405f46a61f --- M tests/http_tests.py 1 file changed, 41 insertions(+), 0 deletions(-) Approvals: John Vandenberg: Looks good to me, but someone else must approve XZise: Looks good to me, approved Xqt: Verified; Looks good to me, approved jenkins-bot: Verified diff --git a/tests/http_tests.py b/tests/http_tests.py index 3c49acd..66ec833 100644 --- a/tests/http_tests.py +++ b/tests/http_tests.py @@ -7,6 +7,7 @@ # __version__ = '$Id$' +import os import sys import httplib2 @@ -16,6 +17,7 @@ from pywikibot import config2 as config from pywikibot.comms import http, threadedhttp +from tests import _images_dir from tests.aspects import unittest, TestCase from tests.utils import expected_failure_if @@ -414,6 +416,45 @@ self.assertRaises(UnicodeDecodeError, lambda: req.content) +class BinaryTestCase(TestCase): + + """Get binary file using httplib2 and pywikibot.""" + + net = True + + url = '
https://upload.wikimedia.org/wikipedia/commons/f/fc/MP_sounds.png
' + + @classmethod + def setUpClass(cls): + super(BinaryTestCase, cls).setUpClass() + + with open(os.path.join(_images_dir, 'MP_sounds.png'), 'rb') as f: + cls.png = f.read() + + def test_httplib2(self): + """Test with httplib2, underlying package.""" + h = httplib2.Http() + r = h.request(uri=self.url) + + self.assertEqual(r[0]['content-type'], 'image/png') + self.assertEqual(r[1], self.png) + + next(iter(h.connections.values())).close() + + def test_threadedhttp(self): + """Test with threadedhttp, internal layer on top of httplib2.""" + r = threadedhttp.Http().request(uri=self.url) + + self.assertEqual(r[0]['content-type'], 'image/png') + self.assertEqual(r[1], self.png) + + def test_http(self): + """Test with http, standard http interface for pywikibot.""" + r = http.fetch(uri=self.url) + + self.assertEqual(r.raw, self.png) + + if __name__ == '__main__': try: unittest.main() -- To view, visit
https://gerrit.wikimedia.org/r/169989
To unsubscribe, visit
https://gerrit.wikimedia.org/r/settings
Gerrit-MessageType: merged Gerrit-Change-Id: I1f413418461a1dc8e47b1f6b0cfbee405f46a61f Gerrit-PatchSet: 6 Gerrit-Project: pywikibot/core Gerrit-Branch: master Gerrit-Owner: John Vandenberg <jayvdb(a)gmail.com> Gerrit-Reviewer: John Vandenberg <jayvdb(a)gmail.com> Gerrit-Reviewer: Ladsgroup <ladsgroup(a)gmail.com> Gerrit-Reviewer: Merlijn van Deen <valhallasw(a)arctus.nl> Gerrit-Reviewer: XZise <CommodoreFabianus(a)gmx.de> Gerrit-Reviewer: Xqt <info(a)gno.de> Gerrit-Reviewer: jenkins-bot <>
1
0
0
0
Broken: wikimedia/pywikibot-core#1974 (master - a933d50)
by Travis CI
11 Feb '15
11 Feb '15
Build Update for wikimedia/pywikibot-core ------------------------------------- Build: #1974 Status: Broken Duration: 46 minutes and 54 seconds Commit: a933d50 (master) Author: jenkins-bot Message: Merge "[bugfix] Ignore invalid title error in redirect.py" View the changeset:
https://github.com/wikimedia/pywikibot-core/compare/57cc9b117493...a933d50d…
View the full build log and details:
https://travis-ci.org/wikimedia/pywikibot-core/builds/50335973
-- You can configure recipients for build notifications in your .travis.yml file. See
http://docs.travis-ci.com/user/notifications
1
0
0
0
[Gerrit] Use Page.revisions() instead of getVersionHistory() method - change (pywikibot/core)
by jenkins-bot (Code Review)
11 Feb '15
11 Feb '15
jenkins-bot has submitted this change and it was merged. Change subject: Use Page.revisions() instead of getVersionHistory() method ...................................................................... Use Page.revisions() instead of getVersionHistory() method Change-Id: I85edfc11304c9c7fcb983e87d7cc71bd5b7d89ac --- M scripts/category_redirect.py M scripts/newitem.py M tests/page_tests.py M tests/site_tests.py 4 files changed, 8 insertions(+), 9 deletions(-) Approvals: John Vandenberg: Looks good to me, approved jenkins-bot: Verified diff --git a/scripts/category_redirect.py b/scripts/category_redirect.py index e819332..af0aca3 100755 --- a/scripts/category_redirect.py +++ b/scripts/category_redirect.py @@ -198,12 +198,12 @@ sorted(log_items.items(), reverse=True)[:LOG_SIZE - 1]] log_text = "\n".join("\n".join(line for line in text) for text in keep) # get permalink to older logs - history = self.log_page.getVersionHistory(total=LOG_SIZE) + history = list(self.log_page.revisions(total=LOG_SIZE)) # get the id of the newest log being archived - rotate_revid = history[LOG_SIZE - 1][0] + rotate_revid = history[-1].revid # append permalink - log_text = log_text + ("\n\n'''[%s Older logs]'''" - % self.log_page.permalink(oldid=rotate_revid)) + log_text += ("\n\n'''[%s Older logs]'''" + % self.log_page.permalink(oldid=rotate_revid)) return log_text def check_hard_redirect(self): diff --git a/scripts/newitem.py b/scripts/newitem.py index acba3da..f6bc7df 100644 --- a/scripts/newitem.py +++ b/scripts/newitem.py @@ -78,8 +78,7 @@ % (page, page.editTime().isoformat())) return - rev = page.getVersionHistory(reverseOrder=True, total=1)[0] - if rev.timestamp > self.pageAgeBefore: + if page.oldest_revision.timestamp > self.pageAgeBefore: pywikibot.output( u'Page creation of %s on %s is too recent. Skipping.' % (page, page.editTime().isoformat())) diff --git a/tests/page_tests.py b/tests/page_tests.py index f95bd6d..087ce73 100644 --- a/tests/page_tests.py +++ b/tests/page_tests.py @@ -626,7 +626,7 @@ p.markDeletedRevision(del_revs[-2]) self.assertRaises(ValueError, p.markDeletedRevision, 123) p.undelete(reason='pywikibot unit test') - revs = list(p.getVersionHistory()) + revs = list(p.revisions()) self.assertEqual(len(revs), 2) self.assertEqual(revs[1].revid, revid) diff --git a/tests/site_tests.py b/tests/site_tests.py index d8daebf..2b3aa90 100644 --- a/tests/site_tests.py +++ b/tests/site_tests.py @@ -1258,14 +1258,14 @@ revisions=[u'2014-12-21T06:07:47Z', u'2014-12-21T06:07:31Z']) - revs = list(p.getVersionHistory()) + revs = list(p.revisions()) self.assertEqual(len(revs), 2) self.assertEqual(revs[0].revid, 219995) self.assertEqual(revs[1].revid, 219994) site.deletepage(p, reason='pywikibot unit tests') site.undelete_page(p, 'pywikibot unit tests') - revs = list(p.getVersionHistory()) + revs = list(p.revisions()) self.assertTrue(len(revs) > 2) -- To view, visit
https://gerrit.wikimedia.org/r/188819
To unsubscribe, visit
https://gerrit.wikimedia.org/r/settings
Gerrit-MessageType: merged Gerrit-Change-Id: I85edfc11304c9c7fcb983e87d7cc71bd5b7d89ac Gerrit-PatchSet: 3 Gerrit-Project: pywikibot/core Gerrit-Branch: master Gerrit-Owner: Xqt <info(a)gno.de> Gerrit-Reviewer: John Vandenberg <jayvdb(a)gmail.com> Gerrit-Reviewer: Ladsgroup <ladsgroup(a)gmail.com> Gerrit-Reviewer: Merlijn van Deen <valhallasw(a)arctus.nl> Gerrit-Reviewer: XZise <CommodoreFabianus(a)gmx.de> Gerrit-Reviewer: Xqt <info(a)gno.de> Gerrit-Reviewer: jenkins-bot <>
1
0
0
0
[Gerrit] [bugfix] Fix UnicodeEncodeError - change (pywikibot/core)
by jenkins-bot (Code Review)
11 Feb '15
11 Feb '15
jenkins-bot has submitted this change and it was merged. Change subject: [bugfix] Fix UnicodeEncodeError ...................................................................... [bugfix] Fix UnicodeEncodeError Bug: T89232 Change-Id: Ia93d717c3892d12f41d4580028b26bddc61036e1 --- M pywikibot/page.py 1 file changed, 1 insertion(+), 1 deletion(-) Approvals: John Vandenberg: Verified; Looks good to me, approved jenkins-bot: Verified diff --git a/pywikibot/page.py b/pywikibot/page.py index ea260c7..3d357b8 100644 --- a/pywikibot/page.py +++ b/pywikibot/page.py @@ -1959,7 +1959,7 @@ target_link = target_page.title(asLink=True, textlink=True, allowInterwiki=False) - target_link = '#{0} {1}'.format(self.site.redirect(), target_link) + target_link = u'#{0} {1}'.format(self.site.redirect(), target_link) self.text = prefix + target_link + suffix if kwargs: self.save(**kwargs) -- To view, visit
https://gerrit.wikimedia.org/r/189929
To unsubscribe, visit
https://gerrit.wikimedia.org/r/settings
Gerrit-MessageType: merged Gerrit-Change-Id: Ia93d717c3892d12f41d4580028b26bddc61036e1 Gerrit-PatchSet: 2 Gerrit-Project: pywikibot/core Gerrit-Branch: master Gerrit-Owner: Xqt <info(a)gno.de> Gerrit-Reviewer: John Vandenberg <jayvdb(a)gmail.com> Gerrit-Reviewer: Ladsgroup <ladsgroup(a)gmail.com> Gerrit-Reviewer: Merlijn van Deen <valhallasw(a)arctus.nl> Gerrit-Reviewer: jenkins-bot <>
1
0
0
0
[Gerrit] [bugfix] Ignore invalid title error in redirect.py - change (pywikibot/core)
by jenkins-bot (Code Review)
11 Feb '15
11 Feb '15
jenkins-bot has submitted this change and it was merged. Change subject: [bugfix] Ignore invalid title error in redirect.py ...................................................................... [bugfix] Ignore invalid title error in redirect.py Bug: T88801 Change-Id: I5b8d5343188350a2ff41400b83db1d7e1ee22f36 --- M scripts/redirect.py 1 file changed, 3 insertions(+), 0 deletions(-) Approvals: John Vandenberg: Looks good to me, approved jenkins-bot: Verified diff --git a/scripts/redirect.py b/scripts/redirect.py index 0560204..225d231 100755 --- a/scripts/redirect.py +++ b/scripts/redirect.py @@ -436,6 +436,9 @@ u'Redirect target %s is not a valid page title.' % str(e)[10:]) pass + except pywikibot.InvalidTitle: + pywikibot.exception() + pass except pywikibot.NoPage: movedTarget = self.moved_page(targetPage) if movedTarget: -- To view, visit
https://gerrit.wikimedia.org/r/189028
To unsubscribe, visit
https://gerrit.wikimedia.org/r/settings
Gerrit-MessageType: merged Gerrit-Change-Id: I5b8d5343188350a2ff41400b83db1d7e1ee22f36 Gerrit-PatchSet: 3 Gerrit-Project: pywikibot/core Gerrit-Branch: master Gerrit-Owner: Xqt <info(a)gno.de> Gerrit-Reviewer: John Vandenberg <jayvdb(a)gmail.com> Gerrit-Reviewer: Ladsgroup <ladsgroup(a)gmail.com> Gerrit-Reviewer: Merlijn van Deen <valhallasw(a)arctus.nl> Gerrit-Reviewer: jenkins-bot <>
1
0
0
0
Fixed: wikimedia/pywikibot-core#1973 (master - 57cc9b1)
by Travis CI
11 Feb '15
11 Feb '15
Build Update for wikimedia/pywikibot-core ------------------------------------- Build: #1973 Status: Fixed Duration: 55 minutes and 19 seconds Commit: 57cc9b1 (master) Author: jenkins-bot Message: Merge "file_tests.py: Add tests for FilePage.latest_revision_info" View the changeset:
https://github.com/wikimedia/pywikibot-core/compare/0b9cbd017001...57cc9b11…
View the full build log and details:
https://travis-ci.org/wikimedia/pywikibot-core/builds/50299026
-- You can configure recipients for build notifications in your .travis.yml file. See
http://docs.travis-ci.com/user/notifications
1
0
0
0
Fixed: wikimedia/pywikibot-core#1972 (master - 0b9cbd0)
by Travis CI
11 Feb '15
11 Feb '15
Build Update for wikimedia/pywikibot-core ------------------------------------- Build: #1972 Status: Fixed Duration: 48 minutes and 9 seconds Commit: 0b9cbd0 (master) Author: jenkins-bot Message: Merge "category.py breaks articles with includeonly and noinclude" View the changeset:
https://github.com/wikimedia/pywikibot-core/compare/a5790305f06d...0b9cbd01…
View the full build log and details:
https://travis-ci.org/wikimedia/pywikibot-core/builds/50298291
-- You can configure recipients for build notifications in your .travis.yml file. See
http://docs.travis-ci.com/user/notifications
1
0
0
0
← Newer
1
...
6
7
8
9
10
11
12
13
Older →
Jump to page:
1
2
3
4
5
6
7
8
9
10
11
12
13
Results per page:
10
25
50
100
200