jenkins-bot has submitted this change and it was merged.
Change subject: Adding hostname and protocol to the URL of captcha, It's really important
......................................................................
Adding hostname and protocol to the URL of captcha, It's really important
Change-Id: Ie4466deb3862876e78e4092c9c378c13c8ff93c6
---
M pywikibot/site.py
1 file changed, 1 insertion(+), 1 deletion(-)
Approvals:
Ladsgroup: Looks good to me, approved
jenkins-bot: Verified
diff --git a/pywikibot/site.py b/pywikibot/site.py
index 13f0cd5..933eb14 100644
--- a/pywikibot/site.py
+++ b/pywikibot/site.py
@@ -2774,7 +2774,7 @@
continue
elif "url" in captcha:
import webbrowser
- webbrowser.open(captcha["url"])
+ webbrowser.open(self.family.protocol(self.code) + '://' + self.family.hostname(self.code) + captcha["url"])
req['captchaword'] = cap_answerwikipedia.input(
"Please view CAPTCHA in your browser, then type answer here:")
continue
--
To view, visit https://gerrit.wikimedia.org/r/91878
To unsubscribe, visit https://gerrit.wikimedia.org/r/settings
Gerrit-MessageType: merged
Gerrit-Change-Id: Ie4466deb3862876e78e4092c9c378c13c8ff93c6
Gerrit-PatchSet: 2
Gerrit-Project: pywikibot/core
Gerrit-Branch: master
Gerrit-Owner: Ladsgroup <ladsgroup(a)gmail.com>
Gerrit-Reviewer: Ladsgroup <ladsgroup(a)gmail.com>
Gerrit-Reviewer: jenkins-bot
jenkins-bot has submitted this change and it was merged.
Change subject: minor and important fix of webbrowser
......................................................................
minor and important fix of webbrowser
When system wants a cpatcha, you need to import webbrowser in order to be able to open it!
Change-Id: I875217b03d9a9dc47d4a5bdc20ea9f10cc26d223
---
M pywikibot/site.py
1 file changed, 1 insertion(+), 0 deletions(-)
Approvals:
Ladsgroup: Looks good to me, approved
jenkins-bot: Verified
diff --git a/pywikibot/site.py b/pywikibot/site.py
index e203f0b..13f0cd5 100644
--- a/pywikibot/site.py
+++ b/pywikibot/site.py
@@ -2773,6 +2773,7 @@
req['captchaword'] = input(captcha["question"])
continue
elif "url" in captcha:
+ import webbrowser
webbrowser.open(captcha["url"])
req['captchaword'] = cap_answerwikipedia.input(
"Please view CAPTCHA in your browser, then type answer here:")
--
To view, visit https://gerrit.wikimedia.org/r/91871
To unsubscribe, visit https://gerrit.wikimedia.org/r/settings
Gerrit-MessageType: merged
Gerrit-Change-Id: I875217b03d9a9dc47d4a5bdc20ea9f10cc26d223
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: jenkins-bot
Xqt has submitted this change and it was merged.
Change subject: fix Link FA/GA template on ca-wiki from core,
......................................................................
fix Link FA/GA template on ca-wiki from core,
re-order -help doc, fix spelling error
Change-Id: I0bc8939795157fd6c4926ca931d21a6dec8348ac
---
M featured.py
1 file changed, 17 insertions(+), 8 deletions(-)
Approvals:
Xqt: Looks good to me, approved
jenkins-bot: Verified
diff --git a/featured.py b/featured.py
index eb7f37e..1c330f6 100644
--- a/featured.py
+++ b/featured.py
@@ -3,6 +3,20 @@
"""
This script understands various command-line arguments:
+ Task commands:
+
+ Without additional task command this script is used for
+ featured articles as default.
+
+-good use this script for good articles.
+
+-lists use this script for featured lists.
+
+-former use this script for removing {{Link FA|xx}} from former
+ featured articles
+
+ Option commands:
+
-interactive: ask before changing each page
-nocache doesn't include /cache/featured /cache/lists or /cache/good
@@ -18,6 +32,7 @@
-side use -side if you want to move all {{Link FA|lang}} next to the
corresponding interwiki links. Default is placing
{{Link FA|lang}} on top of the interwiki links.
+ (This option is deprecated with wikidata)
-count Only counts how many featured/good articles exist
on all wikis (given with the "-fromlang" argument) or
@@ -25,13 +40,6 @@
Example: featured.py -fromlang:en,he -count
counts how many featured articles exist in the en and he
wikipedias.
-
--lists use this script for featured lists.
-
--good use this script for good articles.
-
--former use this script for removing {{Link FA|xx}} from former
- fearured articles
-quiet no corresponding pages are displayed.
@@ -85,7 +93,7 @@
'ast': ['Enllaz AD'],
'az': ['Link FM'],
'br': ['Liamm PuB', 'Lien AdQ'],
- 'ca': [u'Enllaç AD', 'Destacat'],
+ 'ca': [u'Enllaç AD', 'Link FA', 'Destacat'],
'cy': ['Cyswllt erthygl ddethol', 'Dolen ED'],
'eo': ['LigoElstara'],
'en': ['Link FA', 'FA link'],
@@ -110,6 +118,7 @@
template_good = {
'_default': ['Link GA'],
'ar': [u'وصلة مقالة جيدة'],
+ 'ca': [u'Enllaç AB', 'Lien BA', 'Abo', 'Link GA']
'da': ['Link GA', 'Link AA'],
'eo': ['LigoLeginda'],
'es': ['Bueno'],
--
To view, visit https://gerrit.wikimedia.org/r/91134
To unsubscribe, visit https://gerrit.wikimedia.org/r/settings
Gerrit-MessageType: merged
Gerrit-Change-Id: I0bc8939795157fd6c4926ca931d21a6dec8348ac
Gerrit-PatchSet: 4
Gerrit-Project: pywikibot/compat
Gerrit-Branch: master
Gerrit-Owner: Xqt <info(a)gno.de>
Gerrit-Reviewer: Ladsgroup <ladsgroup(a)gmail.com>
Gerrit-Reviewer: Xqt <info(a)gno.de>
Gerrit-Reviewer: jenkins-bot