jenkins-bot has submitted this change. ( https://gerrit.wikimedia.org/r/c/pywikibot/core/+/834690 )
Change subject: [doc] Fix WikibasePage documentation
......................................................................
[doc] Fix WikibasePage documentation
Change-Id: I6fac2af91f1a3798b34eafbf9b21b4a12ab41c5b
---
M ROADMAP.rst
M pywikibot/page/_wikibase.py
2 files changed, 6 insertions(+), 6 deletions(-)
Approvals:
Xqt: Looks good to me, approved
jenkins-bot: Verified
diff --git a/ROADMAP.rst b/ROADMAP.rst
index fc3acfc..3b40eed 100644
--- a/ROADMAP.rst
+++ b/ROADMAP.rst
@@ -1,8 +1,7 @@
Current release 7.7.0
^^^^^^^^^^^^^^^^^^^^^
-* TypeError is raised if *aliases* parameter of :meth:`WikibaseEntity.editEntity
- <page.WikibaseEntity.editEntity>` or :meth:`WikibasePage.editEntity
+* TypeError is raised if *aliases* parameter of :meth:`WikibasePage.editAliases
<page.WikibasePage.editEntity>` method is not a list (:phab:`T318034`)
* Raise TypeError in :meth:`AliasesDict.normalizeData
<pywikibot.page._collections.AliasesDict.normalizeData>` if *data* value is not a list (:phab:`T318034`)
diff --git a/pywikibot/page/_wikibase.py b/pywikibot/page/_wikibase.py
index 332f97a..2418cd8 100644
--- a/pywikibot/page/_wikibase.py
+++ b/pywikibot/page/_wikibase.py
@@ -286,9 +286,9 @@
"""Edit an entity using Wikibase ``wbeditentity`` API.
This function is wrapped around by:
- - :meth:`editLabels`
- - :meth:`editDescriptions`
- - :meth:`editAliases`
+ - :meth:`WikibasePage.editLabels`
+ - :meth:`WikibasePage.editDescriptions`
+ - :meth:`WikibasePage.editAliases`
- :meth:`ItemPage.setSitelinks`
.. seealso:: :meth:`WikibasePage.editEntity`
@@ -1066,7 +1066,8 @@
A *sitelink* can be a Page object, a BaseLink object or a
``{'site': dbname, 'title': title}`` dictionary.
- Refer :meth:`editEntity` for *asynchronous* and *callback* usage.
+ Refer :meth:`WikibasePage.editEntity` for *asynchronous* and
+ *callback* usage.
"""
self.setSitelinks([sitelink], **kwargs)
--
To view, visit https://gerrit.wikimedia.org/r/c/pywikibot/core/+/834690
To unsubscribe, or for help writing mail filters, visit https://gerrit.wikimedia.org/r/settings
Gerrit-Project: pywikibot/core
Gerrit-Branch: master
Gerrit-Change-Id: I6fac2af91f1a3798b34eafbf9b21b4a12ab41c5b
Gerrit-Change-Number: 834690
Gerrit-PatchSet: 1
Gerrit-Owner: Xqt <info(a)gno.de>
Gerrit-Reviewer: Xqt <info(a)gno.de>
Gerrit-Reviewer: jenkins-bot
Gerrit-MessageType: merged
jenkins-bot has submitted this change. ( https://gerrit.wikimedia.org/r/c/pywikibot/core/+/834661 )
Change subject: [doc] Update ROADMAP.rst and CHANGELOG.rst
......................................................................
[doc] Update ROADMAP.rst and CHANGELOG.rst
Also some other fixes.
Change-Id: I09feadfb8d1cb8300f5cdb723c32c90b4984259f
---
M ROADMAP.rst
M docs/scripts/index.rst
M pywikibot/page/_collections.py
M pywikibot/tools/threading.py
M scripts/CHANGELOG.rst
5 files changed, 15 insertions(+), 2 deletions(-)
Approvals:
Xqt: Looks good to me, approved
jenkins-bot: Verified
diff --git a/ROADMAP.rst b/ROADMAP.rst
index d94a213..fc3acfc 100644
--- a/ROADMAP.rst
+++ b/ROADMAP.rst
@@ -1,7 +1,15 @@
Current release 7.7.0
^^^^^^^^^^^^^^^^^^^^^
+* TypeError is raised if *aliases* parameter of :meth:`WikibaseEntity.editEntity
+ <page.WikibaseEntity.editEntity>` or :meth:`WikibasePage.editEntity
+ <page.WikibasePage.editEntity>` method is not a list (:phab:`T318034`)
+* Raise TypeError in :meth:`AliasesDict.normalizeData
+ <pywikibot.page._collections.AliasesDict.normalizeData>` if *data* value is not a list (:phab:`T318034`)
* tools' threading classes were moved to :mod:`tools.threading` submodule
+* No longer raise NotimplementedError in :meth:`APISite.page_from_repository
+ <pywikibot.site._apisite.APISite.page_from_repository>` (:phab:`T318033`)
+* Ability to set ``PYWIKIBOT_TEST_...`` environment variables with pwb wrapper (:phab:`T139847`)
* OmegaWiki family was removed
* Provide global ``-config`` option to specify the user config file name
* Run :mod:`pywikibot.scripts.login` script in parallel tasks if ``-async`` option is given (:phab:`T57899`)
diff --git a/docs/scripts/index.rst b/docs/scripts/index.rst
index c20b9a5..95d07b9 100644
--- a/docs/scripts/index.rst
+++ b/docs/scripts/index.rst
@@ -3,6 +3,7 @@
.. automodule:: scripts
:no-members:
+ :noindex:
.. include:: ../../scripts/README.rst
:start-after: included.
diff --git a/pywikibot/page/_collections.py b/pywikibot/page/_collections.py
index cd8af8e..14cc42d 100644
--- a/pywikibot/page/_collections.py
+++ b/pywikibot/page/_collections.py
@@ -150,7 +150,7 @@
"""Helper function to expand data into the Wikibase API structure.
.. versionchanged:: 7.7
- raises TypeError *data* value is not a list.
+ raises TypeError if *data* value is not a list.
:param data: Data to normalize
:return: The dict with normalized data
diff --git a/pywikibot/tools/threading.py b/pywikibot/tools/threading.py
index c4d997c..6d13cbe 100644
--- a/pywikibot/tools/threading.py
+++ b/pywikibot/tools/threading.py
@@ -1,4 +1,4 @@
-"""Miscellaneous helper functions (not wiki-dependent)."""
+"""Classes which can be used for threading."""
#
# (C) Pywikibot team, 2008-2022
#
diff --git a/scripts/CHANGELOG.rst b/scripts/CHANGELOG.rst
index 8066403..9a1008c 100644
--- a/scripts/CHANGELOG.rst
+++ b/scripts/CHANGELOG.rst
@@ -11,6 +11,10 @@
* Add -sort option to sort archives by (latest) timestamp
* Archive unsigned threads using timestamp of the next thread (:phab:`T69663`, :phab:`T182685`)
+category_redirect
+~~~~~~~~~~~~~~~~~
+* Use localized template prefix (:phab:`T318049`)
+
create_isbn_edition
~~~~~~~~~~~~~~~~~~~
--
To view, visit https://gerrit.wikimedia.org/r/c/pywikibot/core/+/834661
To unsubscribe, or for help writing mail filters, visit https://gerrit.wikimedia.org/r/settings
Gerrit-Project: pywikibot/core
Gerrit-Branch: master
Gerrit-Change-Id: I09feadfb8d1cb8300f5cdb723c32c90b4984259f
Gerrit-Change-Number: 834661
Gerrit-PatchSet: 1
Gerrit-Owner: Xqt <info(a)gno.de>
Gerrit-Reviewer: D3r1ck01 <xsavitar.wiki(a)aol.com>
Gerrit-Reviewer: Xqt <info(a)gno.de>
Gerrit-Reviewer: jenkins-bot
Gerrit-MessageType: merged
jenkins-bot has submitted this change. ( https://gerrit.wikimedia.org/r/c/pywikibot/core/+/834356 )
Change subject: [IMPR] use preload parameter of getCombinedGenerato to preload pages
......................................................................
[IMPR] use preload parameter of getCombinedGenerato to preload pages
Change-Id: I92c2459fc8ca46e2d1d3ded68d4d5aebcedd747c
---
M scripts/category.py
1 file changed, 2 insertions(+), 5 deletions(-)
Approvals:
Xqt: Looks good to me, approved
jenkins-bot: Verified
diff --git a/scripts/category.py b/scripts/category.py
index 3b25670..5f339a8 100755
--- a/scripts/category.py
+++ b/scripts/category.py
@@ -1553,14 +1553,11 @@
cat_db = CategoryDatabase(rebuild=rebuild)
if action == 'add':
- gen = gen_factory.getCombinedGenerator()
+ gen = gen_factory.getCombinedGenerator(preload=True)
if not gen:
# default for backwards compatibility
gen_factory.handle_arg('-links')
- gen = gen_factory.getCombinedGenerator()
- # The preloading generator is responsible for downloading multiple
- # pages from the wiki simultaneously.
- gen = pagegenerators.PreloadingGenerator(gen)
+ gen = gen_factory.getCombinedGenerator(preload=True)
bot = CategoryAddBot(gen,
newcat=options.get('to'),
sort_by_last_name=sort_by_last_name,
--
To view, visit https://gerrit.wikimedia.org/r/c/pywikibot/core/+/834356
To unsubscribe, or for help writing mail filters, visit https://gerrit.wikimedia.org/r/settings
Gerrit-Project: pywikibot/core
Gerrit-Branch: master
Gerrit-Change-Id: I92c2459fc8ca46e2d1d3ded68d4d5aebcedd747c
Gerrit-Change-Number: 834356
Gerrit-PatchSet: 1
Gerrit-Owner: Xqt <info(a)gno.de>
Gerrit-Reviewer: D3r1ck01 <xsavitar.wiki(a)aol.com>
Gerrit-Reviewer: Xqt <info(a)gno.de>
Gerrit-Reviewer: jenkins-bot
Gerrit-MessageType: merged
jenkins-bot has submitted this change. ( https://gerrit.wikimedia.org/r/c/pywikibot/core/+/833793 )
Change subject: [cleanup] Remove always attribute in CategoryAddBot
......................................................................
[cleanup] Remove always attribute in CategoryAddBot
CategoryAddBot derives from CategoryPreprocess which is BaseBot.
BaseBot has 'always': False as available_options and opt.always
is used within userPut method and may be set there whereas always
attribute is no longer used since CategoryAddBot inherits from
BaseBot after aa255ee change.
Change-Id: I5b1ed4db971a17d28ea664dd45fd3c0ef2243e99
---
M scripts/category.py
1 file changed, 0 insertions(+), 1 deletion(-)
Approvals:
Xqt: Looks good to me, approved
jenkins-bot: Verified
diff --git a/scripts/category.py b/scripts/category.py
index cb04077..3a645f1 100755
--- a/scripts/category.py
+++ b/scripts/category.py
@@ -439,7 +439,6 @@
self.sort = sort_by_last_name
self.create = create
self.follow_redirects = follow_redirects
- self.always = False
self.comment = comment
@staticmethod
--
To view, visit https://gerrit.wikimedia.org/r/c/pywikibot/core/+/833793
To unsubscribe, or for help writing mail filters, visit https://gerrit.wikimedia.org/r/settings
Gerrit-Project: pywikibot/core
Gerrit-Branch: master
Gerrit-Change-Id: I5b1ed4db971a17d28ea664dd45fd3c0ef2243e99
Gerrit-Change-Number: 833793
Gerrit-PatchSet: 1
Gerrit-Owner: Xqt <info(a)gno.de>
Gerrit-Reviewer: D3r1ck01 <xsavitar.wiki(a)aol.com>
Gerrit-Reviewer: Xqt <info(a)gno.de>
Gerrit-Reviewer: jenkins-bot
Gerrit-MessageType: merged