jenkins-bot merged this change.

View Change

Approvals: Dvorapa: Looks good to me, approved jenkins-bot: Verified
[doc] Explain config parser for clean_sandbox.py

Change-Id: Ice338e8a6e2eeb6cbe4c8c06b3c2667c24dc9c91
---
M scripts/clean_sandbox.py
1 file changed, 14 insertions(+), 1 deletion(-)

diff --git a/scripts/clean_sandbox.py b/scripts/clean_sandbox.py
index 8d16d9d..b775d90 100755
--- a/scripts/clean_sandbox.py
+++ b/scripts/clean_sandbox.py
@@ -21,8 +21,21 @@
-text The text that substitutes in the sandbox, you can use this
when you haven't configured clean_candbox for your wiki.

- -summary Summary of the edit made by bot.
+ -summary Summary of the edit made by bot. Overrides the default
+ from i18n.

+All local parameters can be given inside a scripts.ini file. Options
+passed to the script are priorized over options read from ini file. See:
+https://docs.python.org/3/library/configparser.html#supported-ini-file-structure
+
+For example:
+
+ [clean_sandbox]
+ # the parameter section for clean_sandbox script
+ summary = Bot: Cleaning sandbox
+ text = {{subst:Clean Sandbox}}
+ hours: 0.5
+ delay: 7
"""
#
# (C) Leonardo Gregianin, 2006

To view, visit change 583040. To unsubscribe, or for help writing mail filters, visit settings.

Gerrit-Project: pywikibot/core
Gerrit-Branch: master
Gerrit-MessageType: merged
Gerrit-Change-Id: Ice338e8a6e2eeb6cbe4c8c06b3c2667c24dc9c91
Gerrit-Change-Number: 583040
Gerrit-PatchSet: 2
Gerrit-Owner: Xqt <info@gno.de>
Gerrit-Reviewer: D3r1ck01 <xsavitar.wiki@aol.com>
Gerrit-Reviewer: Dvorapa <dvorapa@seznam.cz>
Gerrit-Reviewer: Xqt <info@gno.de>
Gerrit-Reviewer: jenkins-bot (75)