DrTrigon has submitted this change and it was merged.
Change subject: migration; finally mail support for tools available on tool labs
......................................................................
migration; finally mail support for tools available on tool labs
Change-Id: If9676b88cbaa3e3b9cc423074597042ab0dfa1d7
---
M subster.py
1 file changed, 9 insertions(+), 0 deletions(-)
Approvals:
DrTrigon: Verified; Looks good to me, approved
diff --git a/subster.py b/subster.py
index 9031b06..6a89474 100644
--- a/subster.py
+++ b/subster.py
@@ -13,6 +13,15 @@
--- --- --- --- --- --- --- --- --- ---
in order to enable mail (mbox style) storage in given file for address:
drtrigon+subster(a)toolserver.org
+On tool labs the following code was used in file '$HOME/.forward.subster':
+--- --- --- --- --- --- --- --- --- ---
+|jmail cat >> ~/data/subster/mail_inbox
+--- --- --- --- --- --- --- --- --- ---
+in order to enable mail (mbox style) storage in given file for address:
+drtrigonbot.subster(a)tools.wmflabs.org
+For some tips how to configure the forward consult:
+https://bugzilla.wikimedia.org/show_bug.cgi?id=63702
+https://wikitech.wikimedia.org/wiki/DrTrigonBot#Setup_drtrigonbot (fabfile.py)
Other scripts and tools related to this bot are:
- subster_irc.py IRC Robot
--
To view, visit https://gerrit.wikimedia.org/r/129926
To unsubscribe, visit https://gerrit.wikimedia.org/r/settings
Gerrit-MessageType: merged
Gerrit-Change-Id: If9676b88cbaa3e3b9cc423074597042ab0dfa1d7
Gerrit-PatchSet: 1
Gerrit-Project: pywikibot/compat
Gerrit-Branch: master
Gerrit-Owner: DrTrigon <dr.trigon(a)surfeu.ch>
Gerrit-Reviewer: DrTrigon <dr.trigon(a)surfeu.ch>
Gerrit-Reviewer: jenkins-bot <>
jenkins-bot has submitted this change and it was merged.
Change subject: Changing "robot" to "bot" in documentation
......................................................................
Changing "robot" to "bot" in documentation
"Robot" implies on automated device that exists in hardware, "bot" implies on software robots
Change-Id: Ic282107ba2af8a9c2af2b6bfb5c6fb25ed279038
---
M scripts/illustrate_wikidata.py
M scripts/image.py
M scripts/interwiki.py
M scripts/login.py
M scripts/newitem.py
M scripts/protect.py
M scripts/replace.py
M scripts/script_wui.py
M scripts/template.py
M scripts/touch.py
M scripts/weblinkchecker.py
11 files changed, 24 insertions(+), 24 deletions(-)
Approvals:
Ladsgroup: Looks good to me, approved
jenkins-bot: Verified
diff --git a/scripts/illustrate_wikidata.py b/scripts/illustrate_wikidata.py
index 14e0898..cc80f8a 100644
--- a/scripts/illustrate_wikidata.py
+++ b/scripts/illustrate_wikidata.py
@@ -49,7 +49,7 @@
def run(self):
"""
- Starts the robot.
+ Starts the bot.
"""
for page in self.generator:
pywikibot.output(u'Working on %s' % page.title())
diff --git a/scripts/image.py b/scripts/image.py
index da7b0ca..293461e 100644
--- a/scripts/image.py
+++ b/scripts/image.py
@@ -49,14 +49,14 @@
class ImageRobot:
"""
- This robot will load all pages yielded by a file links image page generator and
+ This bot will load all pages yielded by a file links image page generator and
replace or remove all occurences of the old image.
"""
# Summary messages for replacing images
msg_replace = {
'ar': u'روبوت - استبدال الصورة %s مع %s',
'de': u'Bot: Ersetze Bild %s durch %s',
- 'en': u'Robot: Replacing image %s with %s',
+ 'en': u'Bot: Replacing image %s with %s',
'es': u'Robot - Reemplazando imagen %s por %s',
'fa': u'ربات: جایگزین کردن تصویر %s با %s',
'fr': u'Bot: Remplace image %s par %s',
@@ -126,7 +126,7 @@
def run(self):
"""
- Starts the robot's action.
+ Starts the bot's action.
"""
# regular expression to find the original template.
# {{vfd}} does the same thing as {{Vfd}}, so both will be found.
diff --git a/scripts/interwiki.py b/scripts/interwiki.py
index 637fe35..1de151a 100755
--- a/scripts/interwiki.py
+++ b/scripts/interwiki.py
@@ -38,7 +38,7 @@
This implies -noredirect.
- -restore: restore a set of "dumped" pages the robot was working on
+ -restore: restore a set of "dumped" pages the bot was working on
when it terminated. The dump file will be subsequently
removed.
@@ -68,11 +68,11 @@
want to iterate over all categories starting at M, use
-start:Category:M.
- -number: used as -number:#, specifies that the robot should process
+ -number: used as -number:#, specifies that the bot should process
that amount of pages and then stop. This is only useful in
combination with -start. The default is not to stop.
- -until: used as -until:title, specifies that the robot should
+ -until: used as -until:title, specifies that the bot should
process pages in wiki default sort order up to, and
including, "title" and then stop. This is only useful in
combination with -start. The default is not to stop.
@@ -124,7 +124,7 @@
These arguments are useful to provide hints to the bot:
- -hint: used as -hint:de:Anweisung to give the robot a hint
+ -hint: used as -hint:de:Anweisung to give the bot a hint
where to start looking for translations. If no text
is given after the second ':', the name of the page
itself is used as the title for the hint, unless the
@@ -194,7 +194,7 @@
dates, only use found links and hints.
(note: without ending colon)
- -hintnobracket used to make the robot strip everything in brackets,
+ -hintnobracket used to make the bot strip everything in brackets,
and surrounding spaces from the page name, before it is
used in a -hint:xy: where the page name has been left out,
or -hint:all:, -hint:10:, etc. without a name, or
@@ -304,7 +304,7 @@
-query: The maximum number of pages that the bot will load at once.
Default value is 50.
-Some configuration option can be used to change the working of this robot:
+Some configuration option can be used to change the working of this bot:
interwiki_min_subjects: the minimum amount of subjects that should be processed
at the same time.
diff --git a/scripts/login.py b/scripts/login.py
index 5b4f25f..97d60f0 100755
--- a/scripts/login.py
+++ b/scripts/login.py
@@ -1,10 +1,10 @@
#!/usr/bin/python
# -*- coding: utf-8 -*-
"""
-Script to log the robot in to a wiki account.
+Script to log the bot in to a wiki account.
-Suggestion is to make a special account to use for robot use only. Make
-sure this robot account is well known on your home wiki before using.
+Suggestion is to make a special account to use for bot use only. Make
+sure this bot account is well known on your home wiki before using.
Parameters:
diff --git a/scripts/newitem.py b/scripts/newitem.py
index 000f433..a4c3dc3 100644
--- a/scripts/newitem.py
+++ b/scripts/newitem.py
@@ -42,7 +42,7 @@
def run(self):
"""
- Starts the robot.
+ Starts the bot.
"""
pywikibot.output('Page age is set to %s days so only pages created before %s will be considered.' % (self.pageAge, self.pageAgeBefore.isoformat()))
pywikibot.output('Last edit is set to %s days so only pages last edited before %s will be considered.' % (self.lastEdit, self.lastEditBefore.isoformat()))
diff --git a/scripts/protect.py b/scripts/protect.py
index 5b26df1..dcaed46 100644
--- a/scripts/protect.py
+++ b/scripts/protect.py
@@ -61,7 +61,7 @@
class ProtectionRobot:
- """ This robot allows protection of pages en masse. """
+ """ This bot allows protection of pages en masse. """
def __init__(self, generator, summary, always=False, unprotect=False,
edit='sysop', move='sysop', create='sysop'):
@@ -81,7 +81,7 @@
self.move = move
def run(self):
- """ Starts the robot's action.
+ """ Starts the bot's action.
Loop through everything in the page generator and (un)protect it.
"""
diff --git a/scripts/replace.py b/scripts/replace.py
index ad9c11b..df6c215 100755
--- a/scripts/replace.py
+++ b/scripts/replace.py
@@ -322,7 +322,7 @@
def run(self):
"""
- Starts the robot.
+ Starts the bot.
"""
# Run the generator which will yield Pages which might need to be
# changed.
diff --git a/scripts/script_wui.py b/scripts/script_wui.py
index 3a27753..13ea70f 100755
--- a/scripts/script_wui.py
+++ b/scripts/script_wui.py
@@ -1,7 +1,7 @@
#!/usr/bin/python
# -*- coding: utf-8 -*-
"""
-Robot which runs python framework scripts as (sub-)bot and provides a
+Bot which runs python framework scripts as (sub-)bot and provides a
WikiUserInterface (WUI) with Lua support for bot operators.
This script needs external libraries (see imports and comments there)
@@ -21,13 +21,13 @@
Default operating mode.
"""
## @package script_wui
-# @brief Script WikiUserInterface (WUI) Robot
+# @brief Script WikiUserInterface (WUI) Bot
#
# @copyright Dr. Trigon, 2012
#
# @section FRAMEWORK
#
-# Python wikipedia robot framework, DrTrigonBot.
+# Python wikipedia bot framework, DrTrigonBot.
# @see http://pywikipediabot.sourceforge.net/
# @see http://de.wikipedia.org/wiki/Benutzer:DrTrigonBot
#
diff --git a/scripts/template.py b/scripts/template.py
index c3f6063..2298759 100755
--- a/scripts/template.py
+++ b/scripts/template.py
@@ -77,7 +77,7 @@
start replacing. Note that -putthrottle: is a global pywikipedia parameter.
python template.py -putthrottle:30 -namespace:0 lived -subst -always
- -summary:"ROBOT: Substituting {{lived}}, see [[WP:SUBST]]."
+ -summary:"BOT: Substituting {{lived}}, see [[WP:SUBST]]."
This next example removes the templates {{cfr}}, {{cfru}}, and {{cfr-speedy}}
@@ -189,7 +189,7 @@
class TemplateRobot:
"""
- This robot will load all pages yielded by a page generator and replace or
+ This bot will load all pages yielded by a page generator and replace or
remove all occurences of the old template, or substitute them with the
template's text.
diff --git a/scripts/touch.py b/scripts/touch.py
index 228703e..ca5e743 100755
--- a/scripts/touch.py
+++ b/scripts/touch.py
@@ -12,7 +12,7 @@
-purge Do not touch but purge the page
--redir specifies that the robot should work on redirect pages;
+-redir specifies that the bot should work on redirect pages;
otherwise, they will be skipped.
All other parameters will be regarded as a page title; in this case, the bot
diff --git a/scripts/weblinkchecker.py b/scripts/weblinkchecker.py
index 4ca5627..a7bb096 100644
--- a/scripts/weblinkchecker.py
+++ b/scripts/weblinkchecker.py
@@ -723,7 +723,7 @@
class WeblinkCheckerRobot:
"""
- Robot which will use several LinkCheckThreads at once to search for dead
+ Bot which will use several LinkCheckThreads at once to search for dead
weblinks on pages provided by the given generator.
"""
--
To view, visit https://gerrit.wikimedia.org/r/129881
To unsubscribe, visit https://gerrit.wikimedia.org/r/settings
Gerrit-MessageType: merged
Gerrit-Change-Id: Ic282107ba2af8a9c2af2b6bfb5c6fb25ed279038
Gerrit-PatchSet: 1
Gerrit-Project: pywikibot/core
Gerrit-Branch: master
Gerrit-Owner: Ladsgroup <ladsgroup(a)gmail.com>
Gerrit-Reviewer: Ladsgroup <ladsgroup(a)gmail.com>
Gerrit-Reviewer: Merlijn van Deen <valhallasw(a)arctus.nl>
Gerrit-Reviewer: jenkins-bot <>
jenkins-bot has submitted this change and it was merged.
Change subject: new mw version 1.24wmf1
......................................................................
new mw version 1.24wmf1
Change-Id: I16a46c7f16a7be92573583c435d8418b6c981e08
---
M pywikibot/family.py
1 file changed, 1 insertion(+), 1 deletion(-)
Approvals:
Xqt: Looks good to me, approved
jenkins-bot: Verified
diff --git a/pywikibot/family.py b/pywikibot/family.py
index 5de4393..8d38a11 100644
--- a/pywikibot/family.py
+++ b/pywikibot/family.py
@@ -1065,7 +1065,7 @@
"""Return Wikimedia projects version number as a string."""
# Don't use this, use versionnumber() instead. This only exists
# to not break family files.
- return '1.23wmf20'
+ return '1.24wmf1'
def shared_image_repository(self, code):
return ('commons', 'commons')
--
To view, visit https://gerrit.wikimedia.org/r/129569
To unsubscribe, visit https://gerrit.wikimedia.org/r/settings
Gerrit-MessageType: merged
Gerrit-Change-Id: I16a46c7f16a7be92573583c435d8418b6c981e08
Gerrit-PatchSet: 1
Gerrit-Project: pywikibot/core
Gerrit-Branch: master
Gerrit-Owner: Xqt <info(a)gno.de>
Gerrit-Reviewer: Xqt <info(a)gno.de>
Gerrit-Reviewer: jenkins-bot <>
jenkins-bot has submitted this change and it was merged.
Change subject: new mw version 1.24wmf1
......................................................................
new mw version 1.24wmf1
Change-Id: I2b47ccc7c4f1a8a2266dafabfc7ae9e3ffae9709
---
M family.py
1 file changed, 1 insertion(+), 1 deletion(-)
Approvals:
Xqt: Looks good to me, approved
jenkins-bot: Verified
diff --git a/family.py b/family.py
index bd49977..606d436 100644
--- a/family.py
+++ b/family.py
@@ -4956,7 +4956,7 @@
"""Return Wikimedia projects version number as a string."""
# Don't use this, use versionnumber() instead. This only exists
# to not break family files.
- return '1.23wmf22'
+ return '1.24wmf1'
def shared_image_repository(self, code):
return ('commons', 'commons')
--
To view, visit https://gerrit.wikimedia.org/r/129568
To unsubscribe, visit https://gerrit.wikimedia.org/r/settings
Gerrit-MessageType: merged
Gerrit-Change-Id: I2b47ccc7c4f1a8a2266dafabfc7ae9e3ffae9709
Gerrit-PatchSet: 1
Gerrit-Project: pywikibot/compat
Gerrit-Branch: master
Gerrit-Owner: Xqt <info(a)gno.de>
Gerrit-Reviewer: Xqt <info(a)gno.de>
Gerrit-Reviewer: jenkins-bot <>
jenkins-bot has submitted this change and it was merged.
Change subject: Performance improvement
......................................................................
Performance improvement
It is not necessary to load the whole version history to restore
the last one. total=2 is enough to do the job.
Change-Id: Id739b8765aa90d89c66bde351dcfa9fb28820c27
---
M scripts/revertbot.py
1 file changed, 2 insertions(+), 2 deletions(-)
Approvals:
Alex S.H. Lin: Verified; Looks good to me, approved
jenkins-bot: Verified
diff --git a/scripts/revertbot.py b/scripts/revertbot.py
index c8900fd..e23dfee 100644
--- a/scripts/revertbot.py
+++ b/scripts/revertbot.py
@@ -69,8 +69,8 @@
return 'top' in item
def revert(self, item):
- if len(pywikibot.Page(pywikibot.Site(), item['title']).fullVersionHistory()) > 1:
- rev = pywikibot.Page(pywikibot.Site(), item['title']).fullVersionHistory()[1]
+ if len(pywikibot.Page(pywikibot.Site(), item['title']).fullVersionHistory(total=2)) > 1:
+ rev = pywikibot.Page(pywikibot.Site(), item['title']).fullVersionHistory(total=2)[1]
else:
return False
--
To view, visit https://gerrit.wikimedia.org/r/129097
To unsubscribe, visit https://gerrit.wikimedia.org/r/settings
Gerrit-MessageType: merged
Gerrit-Change-Id: Id739b8765aa90d89c66bde351dcfa9fb28820c27
Gerrit-PatchSet: 1
Gerrit-Project: pywikibot/core
Gerrit-Branch: master
Gerrit-Owner: Xqt <info(a)gno.de>
Gerrit-Reviewer: Alex S.H. Lin <alexsh(a)mail2000.com.tw>
Gerrit-Reviewer: Ladsgroup <ladsgroup(a)gmail.com>
Gerrit-Reviewer: Merlijn van Deen <valhallasw(a)arctus.nl>
Gerrit-Reviewer: jenkins-bot <>