[MediaWiki-commits] [Gerrit] mediawiki/core[master]: debug: Add cli_argv field to monolog WikiProcessor

2017-08-20 Thread jenkins-bot (Code Review)
jenkins-bot has submitted this change and it was merged. ( 
https://gerrit.wikimedia.org/r/372592 )

Change subject: debug: Add cli_argv field to monolog WikiProcessor
..


debug: Add cli_argv field to monolog WikiProcessor

Follows investigation from T172559, where we found that there is no explicit
way to find what script triggered particular error messages when the script
was run from the command-line (as opposed to a web request, where the
built-in WebProcessor adds fields like http_method and url).

Change-Id: Ia9641274a164137dcc30324578d750cc662976ee
---
M includes/debug/logger/monolog/WikiProcessor.php
1 file changed, 7 insertions(+), 9 deletions(-)

Approvals:
  BryanDavis: Looks good to me, approved
  jenkins-bot: Verified



diff --git a/includes/debug/logger/monolog/WikiProcessor.php 
b/includes/debug/logger/monolog/WikiProcessor.php
index 5e32887..e39a2c3 100644
--- a/includes/debug/logger/monolog/WikiProcessor.php
+++ b/includes/debug/logger/monolog/WikiProcessor.php
@@ -35,15 +35,13 @@
 */
public function __invoke( array $record ) {
global $wgVersion;
-   $record['extra'] = array_merge(
-   $record['extra'],
-   [
-   'host' => wfHostname(),
-   'wiki' => wfWikiID(),
-   'mwversion' => $wgVersion,
-   'reqId' => \WebRequest::getRequestId(),
-   ]
-   );
+   $record['extra']['host'] = wfHostname();
+   $record['extra']['wiki'] = wfWikiID();
+   $record['extra']['mwversion'] = $wgVersion;
+   $record['extra']['reqId'] = \WebRequest::getRequestId();
+   if ( PHP_SAPI === 'cli' && isset( $_SERVER['argv'] ) ) {
+   $record['extra']['cli_argv'] = implode( ' ', 
$_SERVER['argv'] );
+   }
return $record;
}
 

-- 
To view, visit https://gerrit.wikimedia.org/r/372592
To unsubscribe, visit https://gerrit.wikimedia.org/r/settings

Gerrit-MessageType: merged
Gerrit-Change-Id: Ia9641274a164137dcc30324578d750cc662976ee
Gerrit-PatchSet: 1
Gerrit-Project: mediawiki/core
Gerrit-Branch: master
Gerrit-Owner: Krinkle 
Gerrit-Reviewer: BryanDavis 
Gerrit-Reviewer: Catrope 
Gerrit-Reviewer: Jcrespo 
Gerrit-Reviewer: Legoktm 
Gerrit-Reviewer: Tim Starling 
Gerrit-Reviewer: jenkins-bot <>

___
MediaWiki-commits mailing list
MediaWiki-commits@lists.wikimedia.org
https://lists.wikimedia.org/mailman/listinfo/mediawiki-commits


[MediaWiki-commits] [Gerrit] mediawiki/core[master]: Don't hard-code Preferences page name

2017-08-20 Thread Samwilson (Code Review)
Samwilson has uploaded a new change for review. ( 
https://gerrit.wikimedia.org/r/372805 )

Change subject: Don't hard-code Preferences page name
..

Don't hard-code Preferences page name

This fixes the restore-prefs link by switching to use whatever
the current title of the PreferencesForm is.

Bug: T173682
Change-Id: I67a13269a63f719a011a2d59a07493d9eb6b653b
---
M includes/Preferences.php
1 file changed, 1 insertion(+), 1 deletion(-)


  git pull ssh://gerrit.wikimedia.org:29418/mediawiki/core 
refs/changes/05/372805/1

diff --git a/includes/Preferences.php b/includes/Preferences.php
index c74d6e1..726dda5 100644
--- a/includes/Preferences.php
+++ b/includes/Preferences.php
@@ -1682,7 +1682,7 @@
$html = parent::getButtons();
 
if ( $this->getModifiedUser()->isAllowed( 'editmyoptions' ) ) {
-   $t = SpecialPage::getTitleFor( 'Preferences', 'reset' );
+   $t = SpecialPage::getTitleFor( 
$this->getTitle()->getText(), 'reset' );
 
$linkRenderer = 
MediaWikiServices::getInstance()->getLinkRenderer();
$html .= "\n" . $linkRenderer->makeLink( $t, 
$this->msg( 'restoreprefs' )->text(),

-- 
To view, visit https://gerrit.wikimedia.org/r/372805
To unsubscribe, visit https://gerrit.wikimedia.org/r/settings

Gerrit-MessageType: newchange
Gerrit-Change-Id: I67a13269a63f719a011a2d59a07493d9eb6b653b
Gerrit-PatchSet: 1
Gerrit-Project: mediawiki/core
Gerrit-Branch: master
Gerrit-Owner: Samwilson 

___
MediaWiki-commits mailing list
MediaWiki-commits@lists.wikimedia.org
https://lists.wikimedia.org/mailman/listinfo/mediawiki-commits


[MediaWiki-commits] [Gerrit] apps...wikipedia[master]: Make Featured article card translatable

2017-08-20 Thread Tacsipacsi (Code Review)
Tacsipacsi has uploaded a new change for review. ( 
https://gerrit.wikimedia.org/r/372804 )

Change subject: Make Featured article card translatable
..

Make Featured article card translatable

The "Featured article" card's title and save button was untranslatable
as an "experimental English-only feature". As it's stable and widely
used, it should be translatable.

Change-Id: I325102d6485b49625f60fd9bf06b23df62a90283
---
M app/src/main/res/values/strings.xml
M app/src/main/res/values/strings_no_translate.xml
2 files changed, 3 insertions(+), 6 deletions(-)


  git pull ssh://gerrit.wikimedia.org:29418/apps/android/wikipedia 
refs/changes/04/372804/1

diff --git a/app/src/main/res/values/strings.xml 
b/app/src/main/res/values/strings.xml
index 50f4ca9..38839c5 100644
--- a/app/src/main/res/values/strings.xml
+++ b/app/src/main/res/values/strings.xml
@@ -411,6 +411,9 @@
 Today
 No thanks
 Content cannot be loaded when 
offline.
+Featured article
+Save
+Saved
 
 
 
diff --git a/app/src/main/res/values/strings_no_translate.xml 
b/app/src/main/res/values/strings_no_translate.xml
index 35a169a..d2454c1 100644
--- a/app/src/main/res/values/strings_no_translate.xml
+++ b/app/src/main/res/values/strings_no_translate.xml
@@ -43,12 +43,6 @@
 
 @string/feed
 @string/reading_list_item_delete_undo
-
-
-Featured article
-Save
-Saved
-
 
 
 

-- 
To view, visit https://gerrit.wikimedia.org/r/372804
To unsubscribe, visit https://gerrit.wikimedia.org/r/settings

Gerrit-MessageType: newchange
Gerrit-Change-Id: I325102d6485b49625f60fd9bf06b23df62a90283
Gerrit-PatchSet: 1
Gerrit-Project: apps/android/wikipedia
Gerrit-Branch: master
Gerrit-Owner: Tacsipacsi 

___
MediaWiki-commits mailing list
MediaWiki-commits@lists.wikimedia.org
https://lists.wikimedia.org/mailman/listinfo/mediawiki-commits


[MediaWiki-commits] [Gerrit] mediawiki/core[master]: Use short type bool/int in param documentation

2017-08-20 Thread jenkins-bot (Code Review)
jenkins-bot has submitted this change and it was merged. ( 
https://gerrit.wikimedia.org/r/372785 )

Change subject: Use short type bool/int in param documentation
..


Use short type bool/int in param documentation

Enable the phpcs sniffs for this and used phpcbf

Change-Id: Iaa36687154ddd2bf663b9dd519f5c99409d37925
---
M includes/Block.php
M includes/Category.php
M includes/EditPage.php
M includes/MediaWiki.php
M includes/MergeHistory.php
M includes/OutputPage.php
M includes/Revision.php
M includes/SiteStats.php
M includes/StreamFile.php
M includes/api/ApiParamInfo.php
M includes/auth/AuthManager.php
M includes/auth/CreateFromLoginAuthenticationRequest.php
M includes/cache/HTMLFileCache.php
M includes/cache/MessageCache.php
M includes/collation/IcuCollation.php
M includes/config/EtcdConfig.php
M includes/dao/DBAccessObjectUtils.php
M includes/dao/IDBAccessObject.php
M includes/deferred/DeferredUpdates.php
M includes/deferred/LinksDeletionUpdate.php
M includes/deferred/LinksUpdate.php
M includes/exception/MWExceptionRenderer.php
M includes/filerepo/FileBackendDBRepoWrapper.php
M includes/filerepo/ForeignAPIRepo.php
M includes/filerepo/file/File.php
M includes/htmlform/HTMLForm.php
M includes/htmlform/HTMLFormField.php
M includes/htmlform/fields/HTMLFormFieldWithButton.php
M includes/jobqueue/jobs/CategoryMembershipChangeJob.php
M includes/jobqueue/jobs/RefreshLinksJob.php
M includes/libs/GenericArrayObject.php
M includes/libs/HashRing.php
M includes/libs/MultiHttpClient.php
M includes/libs/filebackend/HTTPFileStreamer.php
M includes/libs/objectcache/BagOStuff.php
M includes/libs/objectcache/HashBagOStuff.php
M includes/libs/objectcache/MultiWriteBagOStuff.php
M includes/libs/objectcache/RESTBagOStuff.php
M includes/libs/objectcache/WANObjectCache.php
M includes/libs/objectcache/WANObjectCacheReaper.php
M includes/libs/rdbms/ChronologyProtector.php
M includes/libs/rdbms/TransactionProfiler.php
M includes/libs/rdbms/database/Database.php
M includes/libs/rdbms/database/IDatabase.php
M includes/libs/rdbms/database/position/MySQLMasterPos.php
M includes/libs/rdbms/database/resultwrapper/MssqlResultWrapper.php
M includes/libs/rdbms/exception/DBQueryError.php
M includes/libs/rdbms/lbfactory/ILBFactory.php
M includes/libs/rdbms/loadbalancer/LoadBalancer.php
M includes/libs/rdbms/loadmonitor/ILoadMonitor.php
M includes/libs/rdbms/loadmonitor/LoadMonitor.php
M includes/libs/stats/BufferingStatsdDataFactory.php
M includes/libs/stats/IBufferingStatsdDataFactory.php
M includes/libs/stats/NullStatsdDataFactory.php
M includes/libs/stats/SamplingStatsdClient.php
M includes/page/Article.php
M includes/page/WikiPage.php
M includes/parser/ParserOutput.php
M includes/parser/Preprocessor_Hash.php
M includes/revisiondelete/RevDelItem.php
M includes/revisiondelete/RevisionDeleter.php
M includes/services/ServiceContainer.php
M includes/session/CookieSessionProvider.php
M includes/specials/SpecialMediaStatistics.php
M includes/tidy/Balancer.php
M includes/tidy/RemexCompatMunger.php
M includes/upload/UploadBase.php
M includes/user/User.php
M includes/utils/BatchRowIterator.php
M includes/utils/UIDGenerator.php
M includes/widget/SearchInputWidget.php
M includes/widget/SelectWithInputWidget.php
M languages/Language.php
M maintenance/Maintenance.php
M maintenance/namespaceDupes.php
M maintenance/rebuildrecentchanges.php
M phpcs.xml
M tests/parser/ParserTestRunner.php
M tests/phpunit/includes/libs/objectcache/WANObjectCacheTest.php
79 files changed, 205 insertions(+), 209 deletions(-)

Approvals:
  Legoktm: Looks good to me, approved
  jenkins-bot: Verified



diff --git a/includes/Block.php b/includes/Block.php
index 843ea54..5066038 100644
--- a/includes/Block.php
+++ b/includes/Block.php
@@ -1513,7 +1513,7 @@
 *
 * @param string $cookieValue The string in which to find the ID.
 *
-* @return integer|null The block ID, or null if the HMAC is present 
and invalid.
+* @return int|null The block ID, or null if the HMAC is present and 
invalid.
 */
public static function getIdFromCookieValue( $cookieValue ) {
// Extract the ID prefix from the cookie value (may be the 
whole value, if no bang found).
diff --git a/includes/Category.php b/includes/Category.php
index c22ea64..629962d 100644
--- a/includes/Category.php
+++ b/includes/Category.php
@@ -48,7 +48,7 @@
 
/**
 * Set up all member variables using a database query.
-* @param integer $mode
+* @param int $mode
 * @throws MWException
 * @return bool True on success, false on failure.
 */
diff --git a/includes/EditPage.php b/includes/EditPage.php
index 49341c5..914e7aa 100644
--- a/includes/EditPage.php
+++ b/includes/EditPage.php
@@ -336,7 +336,7 @@
/** @var string */
public $edittime = '';
 
-   /** @var integer */
+   /** @var int */
private $editRevId = 

[MediaWiki-commits] [Gerrit] mediawiki...PropertySuggester[master]: Clean up jsonlint config

2017-08-20 Thread jenkins-bot (Code Review)
jenkins-bot has submitted this change and it was merged. ( 
https://gerrit.wikimedia.org/r/372716 )

Change subject: Clean up jsonlint config
..


Clean up jsonlint config

There is no .stylelintrc in this repository

Change-Id: I739bf5336be494e644651e312262a862d7ad882a
---
M Gruntfile.js
1 file changed, 2 insertions(+), 2 deletions(-)

Approvals:
  Legoktm: Looks good to me, approved
  jenkins-bot: Verified



diff --git a/Gruntfile.js b/Gruntfile.js
index 1d561f5..81096e6 100644
--- a/Gruntfile.js
+++ b/Gruntfile.js
@@ -11,8 +11,8 @@
jsonlint: {
all: [
'**/*.json',
-   '.stylelintrc',
-   '!node_modules/**'
+   '!node_modules/**',
+   '!vendor/**'
]
},
banana: {

-- 
To view, visit https://gerrit.wikimedia.org/r/372716
To unsubscribe, visit https://gerrit.wikimedia.org/r/settings

Gerrit-MessageType: merged
Gerrit-Change-Id: I739bf5336be494e644651e312262a862d7ad882a
Gerrit-PatchSet: 2
Gerrit-Project: mediawiki/extensions/PropertySuggester
Gerrit-Branch: master
Gerrit-Owner: Umherirrender 
Gerrit-Reviewer: Legoktm 
Gerrit-Reviewer: Umherirrender 
Gerrit-Reviewer: jenkins-bot <>

___
MediaWiki-commits mailing list
MediaWiki-commits@lists.wikimedia.org
https://lists.wikimedia.org/mailman/listinfo/mediawiki-commits


[MediaWiki-commits] [Gerrit] mediawiki...BetaFeatures[master]: Clean up grunt watch config

2017-08-20 Thread jenkins-bot (Code Review)
jenkins-bot has submitted this change and it was merged. ( 
https://gerrit.wikimedia.org/r/372755 )

Change subject: Clean up grunt watch config
..


Clean up grunt watch config

Rename stylelintrc and add stylelint to list of files

Follows: Iaa7c7293a05d025dd6b189c38c49b2d11e971888
Change-Id: Ib7a88148dc1c12a3f92ef02509986c7c55a57d62
---
M Gruntfile.js
1 file changed, 9 insertions(+), 5 deletions(-)

Approvals:
  Legoktm: Looks good to me, approved
  jenkins-bot: Verified



diff --git a/Gruntfile.js b/Gruntfile.js
index d488faa..067d683 100644
--- a/Gruntfile.js
+++ b/Gruntfile.js
@@ -17,7 +17,8 @@
eslint: {
all: [
'**/*.js',
-   '!node_modules/**'
+   '!node_modules/**',
+   '!vendor/**'
]
},
stylelint: {
@@ -27,20 +28,23 @@
all: [
'**/*.css',
'**/*.less',
-   '!node_modules/**'
+   '!node_modules/**',
+   '!vendor/**'
]
},
jsonlint: {
all: [
'**/*.json',
-   '!node_modules/**'
+   '!node_modules/**',
+   '!vendor/**'
]
},
banana: conf.MessagesDirs,
watch: {
files: [
-   '.{stylelintrc,eslintrc.json}',
-   '<%= eslint.all %>'
+   '.{stylelintrc,eslintrc}.json',
+   '<%= eslint.all %>',
+   '<%= stylelint.all %>'
],
tasks: 'test'
}

-- 
To view, visit https://gerrit.wikimedia.org/r/372755
To unsubscribe, visit https://gerrit.wikimedia.org/r/settings

Gerrit-MessageType: merged
Gerrit-Change-Id: Ib7a88148dc1c12a3f92ef02509986c7c55a57d62
Gerrit-PatchSet: 2
Gerrit-Project: mediawiki/extensions/BetaFeatures
Gerrit-Branch: master
Gerrit-Owner: Umherirrender 
Gerrit-Reviewer: Legoktm 
Gerrit-Reviewer: Umherirrender 
Gerrit-Reviewer: jenkins-bot <>

___
MediaWiki-commits mailing list
MediaWiki-commits@lists.wikimedia.org
https://lists.wikimedia.org/mailman/listinfo/mediawiki-commits


[MediaWiki-commits] [Gerrit] mediawiki...ArticleCreationWorkflow[master]: Complete config for stylelint

2017-08-20 Thread jenkins-bot (Code Review)
jenkins-bot has submitted this change and it was merged. ( 
https://gerrit.wikimedia.org/r/372758 )

Change subject: Complete config for stylelint
..


Complete config for stylelint

The stylelintrc file was missed

Change-Id: I89df4ecdf7fa101b36689029302436574d055c0d
---
A .stylelintrc.json
M Gruntfile.js
M package.json
3 files changed, 6 insertions(+), 1 deletion(-)

Approvals:
  Legoktm: Looks good to me, approved
  jenkins-bot: Verified



diff --git a/.stylelintrc.json b/.stylelintrc.json
new file mode 100644
index 000..2c90730
--- /dev/null
+++ b/.stylelintrc.json
@@ -0,0 +1,3 @@
+{
+   "extends": "stylelint-config-wikimedia"
+}
diff --git a/Gruntfile.js b/Gruntfile.js
index e0a034e..ee05484 100644
--- a/Gruntfile.js
+++ b/Gruntfile.js
@@ -31,7 +31,7 @@
banana: conf.MessagesDirs,
watch: {
files: [
-   '.{stylelintrc,eslintrc.json}',
+   '.{stylelintrc,eslintrc}.json',
'<%= eslint.all %>',
'<%= stylelint.all %>'
],
@@ -41,6 +41,7 @@
all: [
'**/*.json',
'!node_modules/**',
+   '!vendor/**',
'!docs/**'
]
}
diff --git a/package.json b/package.json
index 44f5b07..8f59603 100644
--- a/package.json
+++ b/package.json
@@ -14,6 +14,7 @@
"grunt-eslint": "19.0.0",
"grunt-jsonlint": "1.0.8",
"grunt-stylelint": "0.7.0",
+   "stylelint": "7.8.0",
"stylelint-config-wikimedia": "0.4.1"
}
 }

-- 
To view, visit https://gerrit.wikimedia.org/r/372758
To unsubscribe, visit https://gerrit.wikimedia.org/r/settings

Gerrit-MessageType: merged
Gerrit-Change-Id: I89df4ecdf7fa101b36689029302436574d055c0d
Gerrit-PatchSet: 2
Gerrit-Project: mediawiki/extensions/ArticleCreationWorkflow
Gerrit-Branch: master
Gerrit-Owner: Umherirrender 
Gerrit-Reviewer: Legoktm 
Gerrit-Reviewer: MaxSem 
Gerrit-Reviewer: Umherirrender 
Gerrit-Reviewer: jenkins-bot <>

___
MediaWiki-commits mailing list
MediaWiki-commits@lists.wikimedia.org
https://lists.wikimedia.org/mailman/listinfo/mediawiki-commits


[MediaWiki-commits] [Gerrit] pywikibot/core[master]: [i18n] Add serbian templates and section titles to noreferen...

2017-08-20 Thread jenkins-bot (Code Review)
jenkins-bot has submitted this change and it was merged. ( 
https://gerrit.wikimedia.org/r/372784 )

Change subject: [i18n] Add serbian templates and section titles to 
noreferences.py
..


[i18n] Add serbian templates and section titles to noreferences.py

Bug: T173651
Change-Id: I0f5bd3f36d4432c6f438c8083a63abd825a3f2fb
---
M scripts/noreferences.py
1 file changed, 11 insertions(+), 0 deletions(-)

Approvals:
  jenkins-bot: Verified
  Xqt: Looks good to me, approved
  Zoranzoki21: Looks good to me, but someone else must approve



diff --git a/scripts/noreferences.py b/scripts/noreferences.py
index 3a3be25..b2e83f5 100755
--- a/scripts/noreferences.py
+++ b/scripts/noreferences.py
@@ -200,6 +200,12 @@
 'sk': [
 u'Pozri aj',
 ],
+'sr': [
+'Даље читање',
+'Спољашње везе',
+'Види још',
+'Напомене',
+],
 'szl': [
 u'Przipisy',
 u'Připisy',
@@ -347,6 +353,9 @@
 'sk': [
 u'Referencie',
 ],
+'sr': [
+'Референце',
+],
 'szl': [
 u'Przipisy',
 u'Připisy',
@@ -408,6 +417,7 @@
 'ru': [u'Reflist', u'Ref-list', u'Refs', u'Sources',
u'Примечания', u'Список примечаний',
u'Сноска', u'Сноски'],
+'sr': ['Reflist'],
 'szl': [u'Przipisy', u'Připisy'],
 'th': [u'รายการอ้างอิง'],
 'zh': [u'Reflist', u'RefFoot', u'NoteFoot'],
@@ -430,6 +440,7 @@
 'hu': u'{{Források}}',
 'pl': u'{{Przypisy}}',
 'ru': u'{{примечания}}',
+'sr': '{{reflist}}',
 'szl': u'{{Przipisy}}',
 'th': u'{{รายการอ้างอิง}}',
 'zh': u'{{reflist}}',

-- 
To view, visit https://gerrit.wikimedia.org/r/372784
To unsubscribe, visit https://gerrit.wikimedia.org/r/settings

Gerrit-MessageType: merged
Gerrit-Change-Id: I0f5bd3f36d4432c6f438c8083a63abd825a3f2fb
Gerrit-PatchSet: 2
Gerrit-Project: pywikibot/core
Gerrit-Branch: master
Gerrit-Owner: Dvorapa 
Gerrit-Reviewer: John Vandenberg 
Gerrit-Reviewer: Merlijn van Deen 
Gerrit-Reviewer: Urbanecm 
Gerrit-Reviewer: Xqt 
Gerrit-Reviewer: Zhuyifei1999 
Gerrit-Reviewer: Zoranzoki21 
Gerrit-Reviewer: jenkins-bot <>

___
MediaWiki-commits mailing list
MediaWiki-commits@lists.wikimedia.org
https://lists.wikimedia.org/mailman/listinfo/mediawiki-commits


[MediaWiki-commits] [Gerrit] mediawiki...CentralAuth[master]: Mark page moves as bot

2017-08-20 Thread Melos (Code Review)
Melos has uploaded a new change for review. ( 
https://gerrit.wikimedia.org/r/372803 )

Change subject: Mark page moves as bot
..

Mark page moves as bot

When a user is renamed globalrename tool mark local user page moves as
a bot if the move user pages option is set.

Bug: T97659
Change-Id: Id553dc97313270f1ecc8ee2b9d1cbab2f010d93a
---
M includes/LocalRenameJob/LocalPageMoveJob.php
1 file changed, 3 insertions(+), 0 deletions(-)


  git pull ssh://gerrit.wikimedia.org:29418/mediawiki/extensions/CentralAuth 
refs/changes/03/372803/1

diff --git a/includes/LocalRenameJob/LocalPageMoveJob.php 
b/includes/LocalRenameJob/LocalPageMoveJob.php
index 6020f15..2c84169 100644
--- a/includes/LocalRenameJob/LocalPageMoveJob.php
+++ b/includes/LocalRenameJob/LocalPageMoveJob.php
@@ -39,6 +39,9 @@
} );
}
$this->user = User::newFromName( $this->params['renamer'] );
+   if ( !$this->user->isAllowed( 'bot' ) ) {
+   $this->user->mRights[] = 'bot';
+   }
if ( isset( $this->params['pages'] ) ) {
// Old calling style for b/c
foreach ( $this->params['pages'] as $current => $target 
) {

-- 
To view, visit https://gerrit.wikimedia.org/r/372803
To unsubscribe, visit https://gerrit.wikimedia.org/r/settings

Gerrit-MessageType: newchange
Gerrit-Change-Id: Id553dc97313270f1ecc8ee2b9d1cbab2f010d93a
Gerrit-PatchSet: 1
Gerrit-Project: mediawiki/extensions/CentralAuth
Gerrit-Branch: master
Gerrit-Owner: Melos 

___
MediaWiki-commits mailing list
MediaWiki-commits@lists.wikimedia.org
https://lists.wikimedia.org/mailman/listinfo/mediawiki-commits


[MediaWiki-commits] [Gerrit] pywikibot/core[master]: [IMPR] Move unlink.BaseUnlinkBot to specialbots.py

2017-08-20 Thread jenkins-bot (Code Review)
jenkins-bot has submitted this change and it was merged. ( 
https://gerrit.wikimedia.org/r/359985 )

Change subject: [IMPR] Move unlink.BaseUnlinkBot to specialbots.py
..


[IMPR] Move unlink.BaseUnlinkBot to specialbots.py

Bug: T168336
Change-Id: I6d9c6ff6b07fe873ecc6b90416cfe489c155974d
---
M pywikibot/specialbots.py
M scripts/selflink.py
M scripts/unlink.py
3 files changed, 83 insertions(+), 81 deletions(-)

Approvals:
  Dalba: Looks good to me, approved
  jenkins-bot: Verified



diff --git a/pywikibot/specialbots.py b/pywikibot/specialbots.py
index 68b8f70..0a1ad68 100644
--- a/pywikibot/specialbots.py
+++ b/pywikibot/specialbots.py
@@ -21,7 +21,13 @@
 
 from pywikibot import config
 
-from pywikibot.bot import BaseBot, QuitKeyboardInterrupt
+from pywikibot.bot import (
+BaseBot, ExistingPageBot, NoRedirectPageBot, AutomaticTWSummaryBot,
+InteractiveReplace, ChoiceException, UnhandledAnswer, AlwaysChoice,
+QuitKeyboardInterrupt,
+)
+from pywikibot.editor import TextEditor
+from pywikibot.textlib import replace_links
 from pywikibot.tools import PY2, deprecated, deprecated_args
 from pywikibot.tools.formatter import color_format
 
@@ -476,3 +482,76 @@
  self.__class__.__name__)
 finally:
 self.exit()
+
+
+class EditReplacement(ChoiceException, UnhandledAnswer):
+
+"""The text should be edited and replacement should be restarted."""
+
+def __init__(self):
+"""Constructor."""
+super(EditReplacement, self).__init__('edit', 'e')
+self.stop = True
+
+
+class InteractiveUnlink(InteractiveReplace):
+
+"""An implementation which just allows unlinking."""
+
+def __init__(self, bot):
+"""Create default settings."""
+super(InteractiveUnlink, self).__init__(
+old_link=bot.pageToUnlink, new_link=False, default='u')
+self._always = AlwaysChoice(self, 'unlink all pages', 'a')
+self._always.always = bot.getOption('always')
+self.additional_choices = [
+AlwaysChoice(self, 'unlink all on page', 'p'),
+self._always, EditReplacement()]
+self._bot = bot
+self.context = 100
+self.context_change = 100
+
+def handle_answer(self, choice):
+"""Handle choice and store in bot's options."""
+answer = super(InteractiveUnlink, self).handle_answer(choice)
+self._bot.options['always'] = self._always.always
+return answer
+
+
+class BaseUnlinkBot(ExistingPageBot, NoRedirectPageBot, AutomaticTWSummaryBot):
+
+"""A basic bot unlinking a given link from the current page."""
+
+def __init__(self, **kwargs):
+"""Redirect all parameters and add namespace as an available option."""
+self.availableOptions.update({
+'namespaces': [],
+# Which namespaces should be processed?
+# default to [] which means all namespaces will be processed
+})
+super(BaseUnlinkBot, self).__init__(**kwargs)
+
+def _create_callback(self):
+"""Create a new callback instance for replace_links."""
+return InteractiveUnlink(self)
+
+def unlink(self, target_page):
+"""Unlink all links linking to the target page."""
+text = self.current_page.text
+while True:
+unlink_callback = self._create_callback()
+try:
+text = replace_links(text, unlink_callback, target_page.site)
+except EditReplacement:
+new_text = TextEditor().edit(
+unlink_callback.current_text,
+jumpIndex=unlink_callback.current_range[0])
+# if user didn't press Cancel
+if new_text:
+text = new_text
+else:
+text = unlink_callback.current_text
+else:
+break
+
+self.put_current(text)
diff --git a/scripts/selflink.py b/scripts/selflink.py
index f148fe6..b1a20d1 100755
--- a/scripts/selflink.py
+++ b/scripts/selflink.py
@@ -21,8 +21,7 @@
 
 from pywikibot.bot import Choice, MultipleSitesBot
 from pywikibot.pagegenerators import GeneratorFactory, parameterHelp
-
-from scripts.unlink import BaseUnlinkBot
+from pywikibot.specialbots import BaseUnlinkBot
 
 # This is required for the text that is shown when you run this script
 # with the parameter -help.
diff --git a/scripts/unlink.py b/scripts/unlink.py
index 1e4de82..7161e90 100755
--- a/scripts/unlink.py
+++ b/scripts/unlink.py
@@ -31,84 +31,8 @@
 #
 
 import pywikibot
-from pywikibot.bot import (
-SingleSiteBot, ExistingPageBot, NoRedirectPageBot, AutomaticTWSummaryBot,
-InteractiveReplace, ChoiceException, UnhandledAnswer, AlwaysChoice,
-)
-from pywikibot.editor import TextEditor
-from pywikibot.textlib import replace_links
-
-
-class EditReplacement(ChoiceException, UnhandledAnswer):
-
-"""The text 

[MediaWiki-commits] [Gerrit] mediawiki...PageAssessments[master]: PageAssessments has Invalid composer.json

2017-08-20 Thread Rosalieper (Code Review)
Rosalieper has uploaded a new change for review. ( 
https://gerrit.wikimedia.org/r/372802 )

Change subject: PageAssessments has Invalid composer.json
..

PageAssessments has Invalid composer.json

Added license to composer.json.

Bug: T167329
Change-Id: I66d53a6d001c3a11ed8526dbd494b9ab67d8c733
---
M composer.json
1 file changed, 1 insertion(+), 0 deletions(-)


  git pull 
ssh://gerrit.wikimedia.org:29418/mediawiki/extensions/PageAssessments 
refs/changes/02/372802/1

diff --git a/composer.json b/composer.json
index 747582d..331eaaf 100644
--- a/composer.json
+++ b/composer.json
@@ -2,6 +2,7 @@
"name": "mediawiki/page-assessments",
"type": "mediawiki-extension",
"description": "This extension adds a parser function which can be used 
for storing article assessments in a database table.",
+   "license":"GPL-2.0",
"require-dev": {
"jakub-onderka/php-parallel-lint": "0.9.2",
"mediawiki/mediawiki-codesniffer": "0.11.0",

-- 
To view, visit https://gerrit.wikimedia.org/r/372802
To unsubscribe, visit https://gerrit.wikimedia.org/r/settings

Gerrit-MessageType: newchange
Gerrit-Change-Id: I66d53a6d001c3a11ed8526dbd494b9ab67d8c733
Gerrit-PatchSet: 1
Gerrit-Project: mediawiki/extensions/PageAssessments
Gerrit-Branch: master
Gerrit-Owner: Rosalieper 

___
MediaWiki-commits mailing list
MediaWiki-commits@lists.wikimedia.org
https://lists.wikimedia.org/mailman/listinfo/mediawiki-commits


[MediaWiki-commits] [Gerrit] wikimedia/TransparencyReport[master]: New build with accessibility changes

2017-08-20 Thread Siddparmar (Code Review)
Siddparmar has submitted this change and it was merged. ( 
https://gerrit.wikimedia.org/r/372801 )

Change subject: New build with accessibility changes
..


New build with accessibility changes

Change-Id: I0e38bb4c4da886979e944b1fd8fd61bd4e8e7f13
---
M Gemfile.lock
M build/content.html
M build/faq.html
M build/fr/content.html
M build/fr/faq.html
M build/fr/index.html
M build/fr/privacy.html
M build/fr/stories.html
M build/index.html
M build/privacy.html
M build/stories.html
11 files changed, 20 insertions(+), 23 deletions(-)

Approvals:
  Siddparmar: Verified; Looks good to me, approved




-- 
To view, visit https://gerrit.wikimedia.org/r/372801
To unsubscribe, visit https://gerrit.wikimedia.org/r/settings

Gerrit-MessageType: merged
Gerrit-Change-Id: I0e38bb4c4da886979e944b1fd8fd61bd4e8e7f13
Gerrit-PatchSet: 1
Gerrit-Project: wikimedia/TransparencyReport
Gerrit-Branch: master
Gerrit-Owner: Siddparmar 
Gerrit-Reviewer: Siddparmar 

___
MediaWiki-commits mailing list
MediaWiki-commits@lists.wikimedia.org
https://lists.wikimedia.org/mailman/listinfo/mediawiki-commits


[MediaWiki-commits] [Gerrit] wikimedia/TransparencyReport[master]: New build with accessibility changes

2017-08-20 Thread Siddparmar (Code Review)
Siddparmar has uploaded a new change for review. ( 
https://gerrit.wikimedia.org/r/372801 )

Change subject: New build with accessibility changes
..

New build with accessibility changes

Change-Id: I0e38bb4c4da886979e944b1fd8fd61bd4e8e7f13
---
M Gemfile.lock
M build/content.html
M build/faq.html
M build/fr/content.html
M build/fr/faq.html
M build/fr/index.html
M build/fr/privacy.html
M build/fr/stories.html
M build/index.html
M build/privacy.html
M build/stories.html
11 files changed, 20 insertions(+), 23 deletions(-)


  git pull ssh://gerrit.wikimedia.org:29418/wikimedia/TransparencyReport 
refs/changes/01/372801/1


-- 
To view, visit https://gerrit.wikimedia.org/r/372801
To unsubscribe, visit https://gerrit.wikimedia.org/r/settings

Gerrit-MessageType: newchange
Gerrit-Change-Id: I0e38bb4c4da886979e944b1fd8fd61bd4e8e7f13
Gerrit-PatchSet: 1
Gerrit-Project: wikimedia/TransparencyReport
Gerrit-Branch: master
Gerrit-Owner: Siddparmar 

___
MediaWiki-commits mailing list
MediaWiki-commits@lists.wikimedia.org
https://lists.wikimedia.org/mailman/listinfo/mediawiki-commits


[MediaWiki-commits] [Gerrit] pywikibot/core[master]: [IMPR] provide a repr string for LogEntry objects

2017-08-20 Thread Xqt (Code Review)
Xqt has uploaded a new change for review. ( 
https://gerrit.wikimedia.org/r/372800 )

Change subject: [IMPR] provide a repr string for LogEntry objects
..

[IMPR] provide a repr string for LogEntry objects

Change-Id: I74191bcd9601491e22b4fb3c4c8d1c2a89732315
---
M pywikibot/logentries.py
1 file changed, 4 insertions(+), 0 deletions(-)


  git pull ssh://gerrit.wikimedia.org:29418/pywikibot/core 
refs/changes/00/372800/1

diff --git a/pywikibot/logentries.py b/pywikibot/logentries.py
index 26dd3cf..98800b4 100644
--- a/pywikibot/logentries.py
+++ b/pywikibot/logentries.py
@@ -55,6 +55,10 @@
 % (self._expectedType, self.type()))
 self.data._type = self.type()
 
+def __repr__(self):
+"""Return a string representation of LogEntry object."""
+return '{0}({1})'.format(self.__class__.__name__, self.site.sitename)
+
 def __hash__(self):
 """Return the id as the hash."""
 return self.logid()

-- 
To view, visit https://gerrit.wikimedia.org/r/372800
To unsubscribe, visit https://gerrit.wikimedia.org/r/settings

Gerrit-MessageType: newchange
Gerrit-Change-Id: I74191bcd9601491e22b4fb3c4c8d1c2a89732315
Gerrit-PatchSet: 1
Gerrit-Project: pywikibot/core
Gerrit-Branch: master
Gerrit-Owner: Xqt 

___
MediaWiki-commits mailing list
MediaWiki-commits@lists.wikimedia.org
https://lists.wikimedia.org/mailman/listinfo/mediawiki-commits


[MediaWiki-commits] [Gerrit] wikimedia/TransparencyReport[master]: Add `lang` attribute and YAML contents

2017-08-20 Thread Siddparmar (Code Review)
Siddparmar has submitted this change and it was merged. ( 
https://gerrit.wikimedia.org/r/372765 )

Change subject: Add `lang` attribute and YAML contents
..


Add `lang` attribute and YAML contents

Bug: T173629
Change-Id: Ia35d5da82a42d9bc7af2f3a97920ad5dd61c11b1
---
M locales/en.yml
M locales/fr.yml
M source/layouts/layout.erb
3 files changed, 7 insertions(+), 1 deletion(-)

Approvals:
  Siddparmar: Verified; Looks good to me, approved



diff --git a/locales/en.yml b/locales/en.yml
index c8e8f7c..db43b3a 100644
--- a/locales/en.yml
+++ b/locales/en.yml
@@ -1,6 +1,9 @@
 ---
 en:
 
+  language:
+code: "en"
+
   yn:
 yess: "Yes"
 noo: "No"
diff --git a/locales/fr.yml b/locales/fr.yml
index 8cc73c3..0e9858d 100644
--- a/locales/fr.yml
+++ b/locales/fr.yml
@@ -1,6 +1,9 @@
 ---
 fr:
 
+  language:
+code: "fr"
+
   yn:
 yess: "Oui"
 noo: "Non"
diff --git a/source/layouts/layout.erb b/source/layouts/layout.erb
index bb677a9..ffbc700 100644
--- a/source/layouts/layout.erb
+++ b/source/layouts/layout.erb
@@ -1,5 +1,5 @@
 
-
+




-- 
To view, visit https://gerrit.wikimedia.org/r/372765
To unsubscribe, visit https://gerrit.wikimedia.org/r/settings

Gerrit-MessageType: merged
Gerrit-Change-Id: Ia35d5da82a42d9bc7af2f3a97920ad5dd61c11b1
Gerrit-PatchSet: 1
Gerrit-Project: wikimedia/TransparencyReport
Gerrit-Branch: master
Gerrit-Owner: VolkerE 
Gerrit-Reviewer: Prtksxna 
Gerrit-Reviewer: Siddparmar 
Gerrit-Reviewer: VolkerE 

___
MediaWiki-commits mailing list
MediaWiki-commits@lists.wikimedia.org
https://lists.wikimedia.org/mailman/listinfo/mediawiki-commits


[MediaWiki-commits] [Gerrit] mediawiki...BrickipediaExtra[master]: Initial commit import from ShoutWiki trunk

2017-08-20 Thread SamanthaNguyen (Code Review)
SamanthaNguyen has uploaded a new change for review. ( 
https://gerrit.wikimedia.org/r/372799 )

Change subject: Initial commit import from ShoutWiki trunk
..

Initial commit import from ShoutWiki trunk

This extension is specific to Brickipedia, an online encyclopedia
about LEGO. This provides custom messages for the Brickipedia Wiki.

Change-Id: Ic15f26a0171594ea416ca59f65c22bd6386c2a3a
---
A BrickipediaExtraHooks.php
A extension.json
A i18n/de.json
A i18n/en.json
A i18n/es.json
A i18n/fi.json
A i18n/fr.json
A i18n/nl.json
A i18n/pl.json
A i18n/qqq.json
10 files changed, 142 insertions(+), 0 deletions(-)


  git pull 
ssh://gerrit.wikimedia.org:29418/mediawiki/extensions/BrickipediaExtra 
refs/changes/99/372799/1

diff --git a/BrickipediaExtraHooks.php b/BrickipediaExtraHooks.php
new file mode 100644
index 000..80ec50f
--- /dev/null
+++ b/BrickipediaExtraHooks.php
@@ -0,0 +1,26 @@
+set( 'termsofuse', $sk->footerLink( 'termsofuse', 
'termsofusepage' ) );
+   $tpl->data['footerlinks']['places'][] = 'termsofuse';
+   */
+
+   // "Parents" link in footer
+   $tpl->set( 'parents', $sk->footerLink( 'parents', 'parentspage' 
) );
+   $tpl->data['footerlinks']['places'][] = 'parents';
+
+   return true;
+   }
+
+}
\ No newline at end of file
diff --git a/extension.json b/extension.json
new file mode 100644
index 000..76c7736
--- /dev/null
+++ b/extension.json
@@ -0,0 +1,30 @@
+{
+   "name": "Brickipedia Extra",
+   "version": "1.1",
+   "author": [
+   "Adam Carter/UltrasonicNXT",
+   "George Barnick",
+   "Lewis Cawte",
+   "Jack Phoenix",
+   "Samantha Nguyen",
+   "..."
+   ],
+   "license-name": "GPL-2.0+",
+   "url": "https://www.mediawiki.org/wiki/Extension:BrickipediaExtra;,
+   "descriptionmsg": "brickipedia-extra-desc",
+   "type": "other",
+   "AutoloadClasses": {
+   "BrickipediaExtraHooks": "BrickipediaExtraHooks.php"
+   },
+   "Hooks": {
+   "SkinTemplateOutputPageBeforeExec": [
+   
"BrickipediaExtraHooks::onSkinTemplateOutputPageBeforeExec"
+   ]
+   },
+   "MessagesDirs": {
+   "BrickipediaExtra": [
+   "i18n"
+   ]
+   },
+   "manifest_version": 1
+}
diff --git a/i18n/de.json b/i18n/de.json
new file mode 100644
index 000..b9ccd33
--- /dev/null
+++ b/i18n/de.json
@@ -0,0 +1,8 @@
+{
+   "@metadata": {
+   "authors": [
+   "George Barnick"
+   ]
+   },
+   "termsofuse": "Nutzungsbedingungen"
+}
diff --git a/i18n/en.json b/i18n/en.json
new file mode 100644
index 000..80334d4
--- /dev/null
+++ b/i18n/en.json
@@ -0,0 +1,18 @@
+{
+   "@metadata": {
+   "authors": [
+   "George Barnick",
+   "Jack Phoenix "
+   ]
+   },
+   "brickipedia-extra-desc": "Brickipedia-specific i18n messages and other 
functionality",
+   "group-chatmod": "Chat Moderators",
+   "group-chatmod-member": "chat moderator",
+   "group-functionary": "Functionaries",
+   "group-functionary-member": "functionary",
+   "grouppage-functionary": "{{ns:Project}}:Functionaries",
+   "parents": "Parents",
+   "parentspage": "{{ns:Project}}:Parents",
+   "termsofuse": "Terms of Use",
+   "termsofusepage": "{{ns:Project}}:Terms of Use"
+}
diff --git a/i18n/es.json b/i18n/es.json
new file mode 100644
index 000..bc2954d
--- /dev/null
+++ b/i18n/es.json
@@ -0,0 +1,8 @@
+{
+   "@metadata": {
+   "authors": [
+   "George Barnick"
+   ]
+   },
+   "termsofuse": "Términos de uso"
+}
diff --git a/i18n/fi.json b/i18n/fi.json
new file mode 100644
index 000..0a9e6b2
--- /dev/null
+++ b/i18n/fi.json
@@ -0,0 +1,11 @@
+{
+   "@metadata": {
+   "authors": [
+   "Jack Phoenix "
+   ]
+   },
+   "group-chatmod": "Chatin valvojat",
+   "group-chatmod-member": "chatin valvoja",
+   "parents": "Vanhemmille",
+   "termsofuse": "Käyttöehdot"
+}
diff --git a/i18n/fr.json b/i18n/fr.json
new file mode 100644
index 000..c08d245
--- /dev/null
+++ b/i18n/fr.json
@@ -0,0 +1,8 @@
+{
+   "@metadata": {
+   "authors": [
+   "George Barnick"
+   ]
+   },
+   "termsofuse": "Conditions d'utilisation"
+}
diff --git a/i18n/nl.json b/i18n/nl.json
new file mode 100644
index 000..e0bd9d3
--- /dev/null
+++ b/i18n/nl.json
@@ -0,0 +1,8 @@
+{
+   "@metadata": {
+   "authors": [
+   "George Barnick"
+   ]
+   },
+   "termsofuse": 

[MediaWiki-commits] [Gerrit] operations/mediawiki-config[master]: Initial configuration for hifwiktionary

2017-08-20 Thread Urbanecm (Code Review)
Urbanecm has uploaded a new change for review. ( 
https://gerrit.wikimedia.org/r/372798 )

Change subject: Initial configuration for hifwiktionary
..

Initial configuration for hifwiktionary

Bug: T173643
Change-Id: I71ca3cd767d3f6f0c0eb9d4421f0542c7e082123
---
M dblists/all.dblist
M dblists/commonsuploads.dblist
M dblists/s3.dblist
M dblists/securepollglobal.dblist
M dblists/small.dblist
M dblists/wikidataclient.dblist
M dblists/wiktionary.dblist
M wmf-config/InitialiseSettings.php
8 files changed, 11 insertions(+), 0 deletions(-)


  git pull ssh://gerrit.wikimedia.org:29418/operations/mediawiki-config 
refs/changes/98/372798/1

diff --git a/dblists/all.dblist b/dblists/all.dblist
index 1786cf9..7c71bcd 100644
--- a/dblists/all.dblist
+++ b/dblists/all.dblist
@@ -314,6 +314,7 @@
 hewikivoyage
 hewiktionary
 hifwiki
+hifwiktionary
 hiwiki
 hiwikibooks
 hiwikiversity
diff --git a/dblists/commonsuploads.dblist b/dblists/commonsuploads.dblist
index 11b80ba..8f9b6f3 100644
--- a/dblists/commonsuploads.dblist
+++ b/dblists/commonsuploads.dblist
@@ -178,6 +178,7 @@
 hawiktionary
 hawwiki
 hifwiki
+hifwiktionary
 hiwikibooks
 hiwikiquote
 hiwiktionary
diff --git a/dblists/s3.dblist b/dblists/s3.dblist
index b02be6b..4a82668 100644
--- a/dblists/s3.dblist
+++ b/dblists/s3.dblist
@@ -296,6 +296,7 @@
 hewikisource
 hewikivoyage
 hewiktionary
+hifwiktionary
 hifwiki
 hiwiki
 hiwikibooks
diff --git a/dblists/securepollglobal.dblist b/dblists/securepollglobal.dblist
index b6bd027..0e0e9a3 100644
--- a/dblists/securepollglobal.dblist
+++ b/dblists/securepollglobal.dblist
@@ -313,6 +313,7 @@
 hewikivoyage
 hewiktionary
 hifwiki
+hifwiktionary
 hiwiki
 hiwikibooks
 hiwikiquote
diff --git a/dblists/small.dblist b/dblists/small.dblist
index 60991bd..3ea9260 100644
--- a/dblists/small.dblist
+++ b/dblists/small.dblist
@@ -165,6 +165,7 @@
 hawiktionary
 hawwiki
 hewikinews
+hifwiktionary
 hiwikibooks
 hiwikiversity
 hiwikiquote
diff --git a/dblists/wikidataclient.dblist b/dblists/wikidataclient.dblist
index 7bbbc5b..949316a 100644
--- a/dblists/wikidataclient.dblist
+++ b/dblists/wikidataclient.dblist
@@ -229,6 +229,7 @@
 hewikisource
 hewikivoyage
 hifwiki
+hifwiktionary
 hiwiki
 hiwikibooks
 hiwikiversity
diff --git a/dblists/wiktionary.dblist b/dblists/wiktionary.dblist
index cb89e7d..eb0f2af 100644
--- a/dblists/wiktionary.dblist
+++ b/dblists/wiktionary.dblist
@@ -53,6 +53,7 @@
 gvwiktionary
 hawiktionary
 hewiktionary
+hifwiktionary
 hiwiktionary
 hrwiktionary
 hsbwiktionary
diff --git a/wmf-config/InitialiseSettings.php 
b/wmf-config/InitialiseSettings.php
index aa4287b..9c137ca 100644
--- a/wmf-config/InitialiseSettings.php
+++ b/wmf-config/InitialiseSettings.php
@@ -326,6 +326,7 @@
'hewikinews' => 'Asia/Tel_Aviv',
'ilwikimedia' => 'Asia/Tel_Aviv',
'itwikivoyage' => 'Europe/Rome', // T43992
+   'hifwiktionary' => 'Pacific/Fiji',
'hiwikiquote' => 'Asia/Kolkata', // T126185
'hiwikiversity' => 'Asia/Kolkata', // T168765
'hrwiki' => 'Europe/Berlin',
@@ -2160,6 +2161,7 @@
'hewikisource' => 'ויקיטקסט',
'hewikivoyage' => 'ויקימסע',
'hewiktionary' => 'ויקימילון',
+   'hifwiktionary' => 'Sabdkosh', // T173643
'hiwiki' => 'विकिपीडिया',
'hiwikiversity' => 'विकिविद्यालय', // T168765
'hiwikiquote' => 'विकिसूक्ति', // T126185
@@ -2656,6 +2658,7 @@
'hewikisource' => 'ויקיטקסט',
'hewikivoyage' => 'ויקימסע',
'hewiktionary' => 'ויקימילון',
+   'hifwiktionary' => 'Sabdkosh', // T173643
'hiwiki' => 'विकिपीडिया',
'hiwikiversity' => 'विकिविद्यालय',
'hiwikiquote' => 'विकिसूक्ति', // T126185
@@ -2964,6 +2967,7 @@
'gagwiki' => 'Vikipediyanın_laflanması',
'guwikiquote' => 'વિકિસૂક્તિની_ચર્ચા', // T121853
'guwikisource' => 'વિકિસ્રોત_ચર્ચા',
+   'hifwiktionary' => 'Sabdkosh_ke_baat', // T173643
'hrwikisource' => 'Razgovor_o_Wikizvoru',
'hsbwiktionary' => 'Diskusija_k_Wikisłownikej', // T43328
'huwikinews' => 'Wikihírek-vita',

-- 
To view, visit https://gerrit.wikimedia.org/r/372798
To unsubscribe, visit https://gerrit.wikimedia.org/r/settings

Gerrit-MessageType: newchange
Gerrit-Change-Id: I71ca3cd767d3f6f0c0eb9d4421f0542c7e082123
Gerrit-PatchSet: 1
Gerrit-Project: operations/mediawiki-config
Gerrit-Branch: master
Gerrit-Owner: Urbanecm 

___
MediaWiki-commits mailing list
MediaWiki-commits@lists.wikimedia.org
https://lists.wikimedia.org/mailman/listinfo/mediawiki-commits


[MediaWiki-commits] [Gerrit] operations/mediawiki-config[master]: Update logos for srwikinews, add HD version for them

2017-08-20 Thread Urbanecm (Code Review)
Urbanecm has uploaded a new change for review. ( 
https://gerrit.wikimedia.org/r/372797 )

Change subject: Update logos for srwikinews, add HD version for them
..

Update logos for srwikinews, add HD version for them

Bug: T172255
Change-Id: I6ae67703a04e1338515709e6f638a55e8d154625
---
A static/images/project-logos/srwikinews-1.5x.png
A static/images/project-logos/srwikinews-2x.png
M static/images/project-logos/srwikinews.png
M wmf-config/InitialiseSettings.php
4 files changed, 3 insertions(+), 0 deletions(-)


  git pull ssh://gerrit.wikimedia.org:29418/operations/mediawiki-config 
refs/changes/97/372797/1

diff --git a/static/images/project-logos/srwikinews-1.5x.png 
b/static/images/project-logos/srwikinews-1.5x.png
new file mode 100644
index 000..7eb6a74
--- /dev/null
+++ b/static/images/project-logos/srwikinews-1.5x.png
Binary files differ
diff --git a/static/images/project-logos/srwikinews-2x.png 
b/static/images/project-logos/srwikinews-2x.png
new file mode 100644
index 000..94eb807
--- /dev/null
+++ b/static/images/project-logos/srwikinews-2x.png
Binary files differ
diff --git a/static/images/project-logos/srwikinews.png 
b/static/images/project-logos/srwikinews.png
index 27334c8..f64c5e3 100644
--- a/static/images/project-logos/srwikinews.png
+++ b/static/images/project-logos/srwikinews.png
Binary files differ
diff --git a/wmf-config/InitialiseSettings.php 
b/wmf-config/InitialiseSettings.php
index aa4287b..35d3475 100644
--- a/wmf-config/InitialiseSettings.php
+++ b/wmf-config/InitialiseSettings.php
@@ -1598,6 +1598,9 @@
'fiwikivoyage' => [ '1.5x' => 
'/static/images/project-logos/fiwikivoyage-1.5x.png', '2x' => 
'/static/images/project-logos/fiwikivoyage-2x.png' ],
'viwikivoyage' => [ '1.5x' => 
'/static/images/project-logos/viwikivoyage-1.5x.png', '2x' => 
'/static/images/project-logos/viwikivoyage-2x.png' ], // T151570
 
+   # Wikinews
+   'srwikinews' => [ '1.5x' => 
'/static/images/project-logos/srwikinews-1.5x.png', '2x' => 
'/static/images/project-logos/srwikinews-2x.png' ], // T172255
+
# Chapter wikis
'ecwikimedia' => [ '1.5x' => 
'/static/images/project-logos/ecwikimedia-1.5x.png', '2x' => 
'/static/images/project-logos/ecwikimedia-2x.png' ], // T135521
'maiwikimedia' => [ '1.5x' => 
'/static/images/project-logos/maiwikimedia-1.5x.png', '2x' => 
'/static/images/project-logos/maiwikimedia-2x.png' ],

-- 
To view, visit https://gerrit.wikimedia.org/r/372797
To unsubscribe, visit https://gerrit.wikimedia.org/r/settings

Gerrit-MessageType: newchange
Gerrit-Change-Id: I6ae67703a04e1338515709e6f638a55e8d154625
Gerrit-PatchSet: 1
Gerrit-Project: operations/mediawiki-config
Gerrit-Branch: master
Gerrit-Owner: Urbanecm 

___
MediaWiki-commits mailing list
MediaWiki-commits@lists.wikimedia.org
https://lists.wikimedia.org/mailman/listinfo/mediawiki-commits


[MediaWiki-commits] [Gerrit] operations/mediawiki-config[master]: Add HD logos for srwikisource, update them too

2017-08-20 Thread Urbanecm (Code Review)
Urbanecm has uploaded a new change for review. ( 
https://gerrit.wikimedia.org/r/372796 )

Change subject: Add HD logos for srwikisource, update them too
..

Add HD logos for srwikisource, update them too

Bug: T172268
Change-Id: I41a4604a18c45a5dd145c49a9d195de918e58ada
---
A static/images/project-logos/srwikisource-1.5x.png
A static/images/project-logos/srwikisource-2x.png
M static/images/project-logos/srwikisource.png
M wmf-config/InitialiseSettings.php
4 files changed, 1 insertion(+), 0 deletions(-)


  git pull ssh://gerrit.wikimedia.org:29418/operations/mediawiki-config 
refs/changes/96/372796/1

diff --git a/static/images/project-logos/srwikisource-1.5x.png 
b/static/images/project-logos/srwikisource-1.5x.png
new file mode 100644
index 000..3a1b8be
--- /dev/null
+++ b/static/images/project-logos/srwikisource-1.5x.png
Binary files differ
diff --git a/static/images/project-logos/srwikisource-2x.png 
b/static/images/project-logos/srwikisource-2x.png
new file mode 100644
index 000..99083b4
--- /dev/null
+++ b/static/images/project-logos/srwikisource-2x.png
Binary files differ
diff --git a/static/images/project-logos/srwikisource.png 
b/static/images/project-logos/srwikisource.png
index a0be209..5265fef 100644
--- a/static/images/project-logos/srwikisource.png
+++ b/static/images/project-logos/srwikisource.png
Binary files differ
diff --git a/wmf-config/InitialiseSettings.php 
b/wmf-config/InitialiseSettings.php
index aa4287b..6e15642 100644
--- a/wmf-config/InitialiseSettings.php
+++ b/wmf-config/InitialiseSettings.php
@@ -1572,6 +1572,7 @@
'cswikisource' => [ '1.5x' => 
'/static/images/project-logos/cswikisource-1.5x.png', '2x' => 
'/static/images/project-logos/cswikisource-2x.png' ], // T150618
'nowikisource' => [ '1.5x' => 
'/static/images/project-logos/nowikisource-1.5x.png', '2x' => 
'/static/images/project-logos/nowikisource-2x.png' ], // T167192
'pawikisource' => [ '1.5x' => 
'/static/images/project-logos/pawikisource-1.5x.png', '2x' => 
'/static/images/project-logos/pawikisource-2x.png' ], // T149522
+   'srwikisource' => [ '1.5x' => 
'/static/images/project-logos/srwikisource-1.5x.png', '2x' => 
'/static/images/project-logos/srwikisource-2x.png' ], // T172268
'viwikisource' => [ '1.5x' => 
'/static/images/project-logos/viwikisource-1.5x.png', '2x' => 
'/static/images/project-logos/viwikisource-2x.png' ],
 
# Wikiversity

-- 
To view, visit https://gerrit.wikimedia.org/r/372796
To unsubscribe, visit https://gerrit.wikimedia.org/r/settings

Gerrit-MessageType: newchange
Gerrit-Change-Id: I41a4604a18c45a5dd145c49a9d195de918e58ada
Gerrit-PatchSet: 1
Gerrit-Project: operations/mediawiki-config
Gerrit-Branch: master
Gerrit-Owner: Urbanecm 

___
MediaWiki-commits mailing list
MediaWiki-commits@lists.wikimedia.org
https://lists.wikimedia.org/mailman/listinfo/mediawiki-commits


[MediaWiki-commits] [Gerrit] operations/mediawiki-config[master]: Update logos for srwiktionary, add HD logos for srwiktionary

2017-08-20 Thread Urbanecm (Code Review)
Urbanecm has uploaded a new change for review. ( 
https://gerrit.wikimedia.org/r/372795 )

Change subject: Update logos for srwiktionary, add HD logos for srwiktionary
..

Update logos for srwiktionary, add HD logos for srwiktionary

Bug: T172245
Change-Id: I8ff6221054fb7cef060837800a2235e15d1c9119
---
A static/images/project-logos/srwiktionary-1.5x.png
A static/images/project-logos/srwiktionary-2x.png
M static/images/project-logos/srwiktionary.png
M wmf-config/InitialiseSettings.php
4 files changed, 1 insertion(+), 0 deletions(-)


  git pull ssh://gerrit.wikimedia.org:29418/operations/mediawiki-config 
refs/changes/95/372795/1

diff --git a/static/images/project-logos/srwiktionary-1.5x.png 
b/static/images/project-logos/srwiktionary-1.5x.png
new file mode 100644
index 000..999c6a1
--- /dev/null
+++ b/static/images/project-logos/srwiktionary-1.5x.png
Binary files differ
diff --git a/static/images/project-logos/srwiktionary-2x.png 
b/static/images/project-logos/srwiktionary-2x.png
new file mode 100644
index 000..65bb66c
--- /dev/null
+++ b/static/images/project-logos/srwiktionary-2x.png
Binary files differ
diff --git a/static/images/project-logos/srwiktionary.png 
b/static/images/project-logos/srwiktionary.png
index 4595da3..1c05133 100644
--- a/static/images/project-logos/srwiktionary.png
+++ b/static/images/project-logos/srwiktionary.png
Binary files differ
diff --git a/wmf-config/InitialiseSettings.php 
b/wmf-config/InitialiseSettings.php
index aa4287b..3aead36 100644
--- a/wmf-config/InitialiseSettings.php
+++ b/wmf-config/InitialiseSettings.php
@@ -1531,6 +1531,7 @@
'siwiktionary' => [ '1.5x' => 
'/static/images/project-logos/siwiktionary-1.5x.png', '2x' => 
'/static/images/project-logos/siwiktionary-2x.png' ], // T150618
'skwiktionary' => [ '1.5x' => 
'/static/images/project-logos/skwiktionary-1.5x.png', '2x' => 
'/static/images/project-logos/skwiktionary-2x.png' ], // T150618
'slwiktionary' => [ '1.5x' => 
'/static/images/project-logos/slwiktionary-1.5x.png', '2x' => 
'/static/images/project-logos/slwiktionary-2x.png' ], // T150618
+   'srwiktionary' => [ '1.5x' => 
'/static/images/project-logos/srwiktionary-1.5x.png', '2x' => 
'/static/images/project-logos/srwiktionary-2x.png' ], // T172245
'suwiktionary' => [ '1.5x' => 
'/static/images/project-logos/suwiktionary-1.5x.png', '2x' => 
'/static/images/project-logos/suwiktionary-2x.png' ], // T150618
'svwiktionary' => [ '1.5x' => 
'/static/images/project-logos/svwiktionary-1.5x.png', '2x' => 
'/static/images/project-logos/svwiktionary-2x.png' ], // T150618
'swwiktionary' => [ '1.5x' => 
'/static/images/project-logos/swwiktionary-1.5x.png', '2x' => 
'/static/images/project-logos/swwiktionary-2x.png' ], // T150618

-- 
To view, visit https://gerrit.wikimedia.org/r/372795
To unsubscribe, visit https://gerrit.wikimedia.org/r/settings

Gerrit-MessageType: newchange
Gerrit-Change-Id: I8ff6221054fb7cef060837800a2235e15d1c9119
Gerrit-PatchSet: 1
Gerrit-Project: operations/mediawiki-config
Gerrit-Branch: master
Gerrit-Owner: Urbanecm 

___
MediaWiki-commits mailing list
MediaWiki-commits@lists.wikimedia.org
https://lists.wikimedia.org/mailman/listinfo/mediawiki-commits


[MediaWiki-commits] [Gerrit] pywikibot/core[master]: [IMPR] Enable comparinf LogEntry instances

2017-08-20 Thread Xqt (Code Review)
Xqt has uploaded a new change for review. ( 
https://gerrit.wikimedia.org/r/372794 )

Change subject: [IMPR] Enable comparinf LogEntry instances
..

[IMPR] Enable comparinf LogEntry instances

Bug: T173664
Change-Id: I372dfd4ff779a919d8fa4bb9bcd156221ffeee37
---
M pywikibot/logentries.py
M tests/logentry_tests.py
2 files changed, 14 insertions(+), 0 deletions(-)


  git pull ssh://gerrit.wikimedia.org:29418/pywikibot/core 
refs/changes/94/372794/1

diff --git a/pywikibot/logentries.py b/pywikibot/logentries.py
index 26dd3cf..14953a0 100644
--- a/pywikibot/logentries.py
+++ b/pywikibot/logentries.py
@@ -59,6 +59,14 @@
 """Return the id as the hash."""
 return self.logid()
 
+def __eq__(self, other):
+"""Compare LogEntry instances."""
+if not isinstance(other, LogEntry):
+raise TypeError("'{0}' cannot be compared with '{1}'"
+.format(self.__class__.__name__,
+other.__class__.__name__))
+return self.data == other.data and self.site == other.site
+
 @property
 def _params(self):
 """
diff --git a/tests/logentry_tests.py b/tests/logentry_tests.py
index 8f9128d..06ead91 100644
--- a/tests/logentry_tests.py
+++ b/tests/logentry_tests.py
@@ -224,6 +224,12 @@
 logentry = self._get_logentry('thanks')
 self.assertIsInstance(logentry.page(), pywikibot.User)
 
+def test_equality(self):
+site = self.get_site('dewp')
+le1 = next(iter(site.logevents(reverse=True, total=1)))
+le2 = next(iter(site.logevents(reverse=True, total=1)))
+self.assertEqual(le1, le2)
+
 
 class TestDeprecatedMethods(TestLogentriesBase, DeprecationTestCase):
 

-- 
To view, visit https://gerrit.wikimedia.org/r/372794
To unsubscribe, visit https://gerrit.wikimedia.org/r/settings

Gerrit-MessageType: newchange
Gerrit-Change-Id: I372dfd4ff779a919d8fa4bb9bcd156221ffeee37
Gerrit-PatchSet: 1
Gerrit-Project: pywikibot/core
Gerrit-Branch: master
Gerrit-Owner: Xqt 

___
MediaWiki-commits mailing list
MediaWiki-commits@lists.wikimedia.org
https://lists.wikimedia.org/mailman/listinfo/mediawiki-commits


[MediaWiki-commits] [Gerrit] mediawiki...AbuseFilter[master]: Remove unused message parameters

2017-08-20 Thread Code Review
Matěj Suchánek has uploaded a new change for review. ( 
https://gerrit.wikimedia.org/r/372793 )

Change subject: Remove unused message parameters
..

Remove unused message parameters

It should have been deleted in I02ba4ce31b6aca5b7324114093f8ece143abc295
but accidentally survived.

Change-Id: Icdbe8fb0154513d643905f7f8bd6391780cd44a7
---
M includes/Views/AbuseFilterViewExamine.php
1 file changed, 1 insertion(+), 1 deletion(-)


  git pull ssh://gerrit.wikimedia.org:29418/mediawiki/extensions/AbuseFilter 
refs/changes/93/372793/1

diff --git a/includes/Views/AbuseFilterViewExamine.php 
b/includes/Views/AbuseFilterViewExamine.php
index 4218bf6..de9a6f7 100644
--- a/includes/Views/AbuseFilterViewExamine.php
+++ b/includes/Views/AbuseFilterViewExamine.php
@@ -182,7 +182,7 @@
$html .= Xml::tags(
'h2',
null,
-   $this->msg( 'abusefilter-examine-vars', 'parseinline' 
)->parse()
+   $this->msg( 'abusefilter-examine-vars' )->parse()
);
$html .= AbuseFilter::buildVarDumpTable( $vars, 
$this->getContext() );
 

-- 
To view, visit https://gerrit.wikimedia.org/r/372793
To unsubscribe, visit https://gerrit.wikimedia.org/r/settings

Gerrit-MessageType: newchange
Gerrit-Change-Id: Icdbe8fb0154513d643905f7f8bd6391780cd44a7
Gerrit-PatchSet: 1
Gerrit-Project: mediawiki/extensions/AbuseFilter
Gerrit-Branch: master
Gerrit-Owner: Matěj Suchánek 

___
MediaWiki-commits mailing list
MediaWiki-commits@lists.wikimedia.org
https://lists.wikimedia.org/mailman/listinfo/mediawiki-commits


[MediaWiki-commits] [Gerrit] mediawiki...AbuseFilter[master]: Pass LinkRenderer instance to AbuseFilter::addNavigationLinks

2017-08-20 Thread Code Review
Matěj Suchánek has uploaded a new change for review. ( 
https://gerrit.wikimedia.org/r/372792 )

Change subject: Pass LinkRenderer instance to AbuseFilter::addNavigationLinks
..

Pass LinkRenderer instance to AbuseFilter::addNavigationLinks

Change-Id: I1de60955344d06e5b55f4d2cfdfa8f2d13df831a
---
M includes/AbuseFilter.class.php
M includes/special/SpecialAbuseFilter.php
M includes/special/SpecialAbuseLog.php
3 files changed, 11 insertions(+), 4 deletions(-)


  git pull ssh://gerrit.wikimedia.org:29418/mediawiki/extensions/AbuseFilter 
refs/changes/92/372792/1

diff --git a/includes/AbuseFilter.class.php b/includes/AbuseFilter.class.php
index 4b1418f..5dc4870 100644
--- a/includes/AbuseFilter.class.php
+++ b/includes/AbuseFilter.class.php
@@ -1,5 +1,6 @@
  'Special:AbuseFilter',
'recentchanges' => 'Special:AbuseFilter/history',
@@ -175,7 +181,6 @@
];
 
$links = [];
-   $linkRenderer = 
MediaWikiServices::getInstance()->getLinkRenderer();
 
foreach ( $linkDefs as $name => $page ) {
// Give grep a chance to find the usages:
diff --git a/includes/special/SpecialAbuseFilter.php 
b/includes/special/SpecialAbuseFilter.php
index 04d5819..c419410 100644
--- a/includes/special/SpecialAbuseFilter.php
+++ b/includes/special/SpecialAbuseFilter.php
@@ -108,7 +108,8 @@
}
 
// Links at the top
-   AbuseFilter::addNavigationLinks( $this->getContext(), $pageType 
);
+   AbuseFilter::addNavigationLinks(
+   $this->getContext(), $pageType, 
$this->getLinkRenderer() );
 
/** @var AbuseFilterView $v */
$v = new $view( $this, $params );
diff --git a/includes/special/SpecialAbuseLog.php 
b/includes/special/SpecialAbuseLog.php
index bac89fe..617262d 100644
--- a/includes/special/SpecialAbuseLog.php
+++ b/includes/special/SpecialAbuseLog.php
@@ -29,7 +29,8 @@
$out = $this->getOutput();
$request = $this->getRequest();
 
-   AbuseFilter::addNavigationLinks( $this->getContext(), 'log' );
+   AbuseFilter::addNavigationLinks(
+   $this->getContext(), 'log', $this->getLinkRenderer() );
 
$this->setHeaders();
$this->outputHeader( 'abusefilter-log-summary' );

-- 
To view, visit https://gerrit.wikimedia.org/r/372792
To unsubscribe, visit https://gerrit.wikimedia.org/r/settings

Gerrit-MessageType: newchange
Gerrit-Change-Id: I1de60955344d06e5b55f4d2cfdfa8f2d13df831a
Gerrit-PatchSet: 1
Gerrit-Project: mediawiki/extensions/AbuseFilter
Gerrit-Branch: master
Gerrit-Owner: Matěj Suchánek 

___
MediaWiki-commits mailing list
MediaWiki-commits@lists.wikimedia.org
https://lists.wikimedia.org/mailman/listinfo/mediawiki-commits


[MediaWiki-commits] [Gerrit] mediawiki...AbuseFilter[master]: Get LinkRenderer instance from special page

2017-08-20 Thread Code Review
Matěj Suchánek has uploaded a new change for review. ( 
https://gerrit.wikimedia.org/r/372791 )

Change subject: Get LinkRenderer instance from special page
..

Get LinkRenderer instance from special page

Just use SpecialPage::getLinkRenderer().

Change-Id: I7c6e839ed8005e666e7c3c1c08dada8aaadbd28f
---
M includes/Views/AbuseFilterView.php
1 file changed, 1 insertion(+), 3 deletions(-)


  git pull ssh://gerrit.wikimedia.org:29418/mediawiki/extensions/AbuseFilter 
refs/changes/91/372791/1

diff --git a/includes/Views/AbuseFilterView.php 
b/includes/Views/AbuseFilterView.php
index d786431..a273c3f 100644
--- a/includes/Views/AbuseFilterView.php
+++ b/includes/Views/AbuseFilterView.php
@@ -1,7 +1,5 @@
 mPage = $page;
$this->mParams = $params;
$this->setContext( $this->mPage->getContext() );
-   $this->linkRenderer = 
MediaWikiServices::getInstance()->getLinkRenderer();
+   $this->linkRenderer = $page->getLinkRenderer();
}
 
/**

-- 
To view, visit https://gerrit.wikimedia.org/r/372791
To unsubscribe, visit https://gerrit.wikimedia.org/r/settings

Gerrit-MessageType: newchange
Gerrit-Change-Id: I7c6e839ed8005e666e7c3c1c08dada8aaadbd28f
Gerrit-PatchSet: 1
Gerrit-Project: mediawiki/extensions/AbuseFilter
Gerrit-Branch: master
Gerrit-Owner: Matěj Suchánek 

___
MediaWiki-commits mailing list
MediaWiki-commits@lists.wikimedia.org
https://lists.wikimedia.org/mailman/listinfo/mediawiki-commits


[MediaWiki-commits] [Gerrit] pywikibot/core[master]: [IMPR] Improvements for User class

2017-08-20 Thread Xqt (Code Review)
Xqt has uploaded a new change for review. ( 
https://gerrit.wikimedia.org/r/372790 )

Change subject: [IMPR] Improvements for User class
..

[IMPR] Improvements for User class

new methods:
- User.logevents(): return user logged activities
- User.last_event: return the last user activity
  (btw. the first is the creation of the account)
- User.first_edit: return the first edit of the given user
- User.last_edit: return the last edit  of the given user

other changes:
- User.contributions(): enable all site.usercontribs options
  (including reverse which might be missing), extend the doc string
- User.uploadedImages(): use User.logevents() here
- User.is_thankable: Simplify result
- site.logevents(): refer mediawiki api but don't list log types here;
  some other doc changes

tests added.

Change-Id: I1aa05649b47eff990f63d38663ff647604e7e260
---
M pywikibot/page.py
M pywikibot/site.py
M tests/user_tests.py
3 files changed, 115 insertions(+), 20 deletions(-)


  git pull ssh://gerrit.wikimedia.org:29418/pywikibot/core 
refs/changes/90/372790/1

diff --git a/pywikibot/page.py b/pywikibot/page.py
index f815f53..2766f7e 100644
--- a/pywikibot/page.py
+++ b/pywikibot/page.py
@@ -3428,6 +3428,40 @@
 """
 self.site.unblockuser(self, reason)
 
+def logevents(self, **leargs):
+"""Yield user activities.
+
+@keyword logtype: only iterate entries of this type
+(see mediawiki api documentation for available types)
+@type logtype: basestring
+@keyword page: only iterate entries affecting this page
+@type page: Page or basestring
+@keyword namespace: namespace to retrieve logevents from
+@type namespace: int or Namespace
+@keyword start: only iterate entries from and after this Timestamp
+@type start: Timestamp or ISO date string
+@keyword end: only iterate entries up to and through this Timestamp
+@type end: Timestamp or ISO date string
+@keyword reverse: if True, iterate oldest entries first
+(default: newest)
+@type reverse: bool
+@keyword tag: only iterate entries tagged with this tag
+@type tag: basestring
+@keyword total: maximum number of events to iterate
+@type total: int
+@rtype: iterable
+"""
+return self.site.logevents(user=self.username, **leargs)
+
+@property
+def last_event(self):
+"""Return last user activity.
+
+@return: last user log entry
+@rtype: LogEntry
+"""
+return next(iter(self.logevents(total=1)))
+
 @deprecated("contributions")
 @deprecate_arg("limit", "total")  # To be consistent with rest of framework
 def editedPages(self, total=500):
@@ -3445,7 +3479,7 @@
 yield item[0]
 
 @deprecated_args(limit='total', namespace='namespaces')
-def contributions(self, total=500, namespaces=[]):
+def contributions(self, total=500, **ucargs):
 """
 Yield tuples describing this user edits.
 
@@ -3456,16 +3490,47 @@
 
 @param total: limit result to this number of pages
 @type total: int
-@param namespaces: only iterate links in these namespaces
-@type namespaces: list
+@keyword start: Iterate contributions starting at this Timestamp
+@keyword end: Iterate contributions ending at this Timestamp
+@keyword reverse: Iterate oldest contributions first (default: newest)
+@keyword namespaces: only iterate pages in these namespaces
+@type namespaces: iterable of basestring or Namespace key,
+or a single instance of those types. May be a '|' separated
+list of namespace identifiers.
+@keyword showMinor: if True, iterate only minor edits; if False and
+not None, iterate only non-minor edits (default: iterate both)
+@keyword top_only: if True, iterate only edits which are the latest
+revision (default: False)
+@return tuple of pywikibot.Page, revid, pywikibot.Timestamp, comment
+@rtype: tuple
 """
 for contrib in self.site.usercontribs(
-user=self.username, namespaces=namespaces, total=total):
+user=self.username, total=total, **ucargs):
 ts = pywikibot.Timestamp.fromISOformat(contrib['timestamp'])
 yield (Page(self.site, contrib['title'], contrib['ns']),
contrib['revid'],
ts,
contrib.get('comment'))
+
+@property
+def first_edit(self):
+"""Return first user contribution.
+
+@return: first user contribution entry
+@return tuple of pywikibot.Page, revid, pywikibot.Timestamp, comment
+@rtype: tuple
+"""
+return next(self.contributions(reverse=True, total=1))
+
+@property
+def last_edit(self):
+"""Return 

[MediaWiki-commits] [Gerrit] operations/mediawiki-config[master]: Set X-Frame-Options: SAMEORIGIN if UploadWizard enabled

2017-08-20 Thread Gerrit Patch Uploader (Code Review)
Gerrit Patch Uploader has uploaded a new change for review. ( 
https://gerrit.wikimedia.org/r/372789 )

Change subject: Set X-Frame-Options: SAMEORIGIN if UploadWizard enabled
..

Set X-Frame-Options: SAMEORIGIN if UploadWizard enabled

Bug: T173631
Change-Id: I0e91c78fcf8efb94c4e254cd55215adfebda9087
---
M wmf-config/InitialiseSettings.php
1 file changed, 1 insertion(+), 0 deletions(-)


  git pull ssh://gerrit.wikimedia.org:29418/operations/mediawiki-config 
refs/changes/89/372789/1

diff --git a/wmf-config/InitialiseSettings.php 
b/wmf-config/InitialiseSettings.php
index aa4287b..58cf121 100644
--- a/wmf-config/InitialiseSettings.php
+++ b/wmf-config/InitialiseSettings.php
@@ -13340,6 +13340,7 @@
 'wgApiFrameOptions' => [
'default' => 'DENY',
'enwiki' => 'SAMEORIGIN', // T41877
+   'zhwiki' => 'SAMEORIGIN', // T173631
 ],
 
 'wmgAltUploadForm' => [ // T35513

-- 
To view, visit https://gerrit.wikimedia.org/r/372789
To unsubscribe, visit https://gerrit.wikimedia.org/r/settings

Gerrit-MessageType: newchange
Gerrit-Change-Id: I0e91c78fcf8efb94c4e254cd55215adfebda9087
Gerrit-PatchSet: 1
Gerrit-Project: operations/mediawiki-config
Gerrit-Branch: master
Gerrit-Owner: Gerrit Patch Uploader 

___
MediaWiki-commits mailing list
MediaWiki-commits@lists.wikimedia.org
https://lists.wikimedia.org/mailman/listinfo/mediawiki-commits


[MediaWiki-commits] [Gerrit] mediawiki...PluggableAuth[master]: Encode url properly

2017-08-20 Thread Cicalese (Code Review)
Cicalese has submitted this change and it was merged. ( 
https://gerrit.wikimedia.org/r/372760 )

Change subject: Encode url properly
..


Encode url properly

Bug: T173627
Change-Id: I165bbc3f56394fd135d21c982695cfb21ba37b8c
---
M PluggableAuthHooks.php
1 file changed, 1 insertion(+), 1 deletion(-)

Approvals:
  Cicalese: Looks good to me, approved
  jenkins-bot: Verified



diff --git a/PluggableAuthHooks.php b/PluggableAuthHooks.php
index 325dc6f..f98ba72 100644
--- a/PluggableAuthHooks.php
+++ b/PluggableAuthHooks.php
@@ -157,7 +157,7 @@
$oldTitle = $title;
$title = Title::newFromText( "UserLogin", NS_SPECIAL );
$out->redirect( $title->getFullURL( [
-   'returnto' => $oldTitle,
+   'returnto' => urlencode( $oldTitle ),
'returntoquery' => $request->getRawQueryString()
] ) );
}

-- 
To view, visit https://gerrit.wikimedia.org/r/372760
To unsubscribe, visit https://gerrit.wikimedia.org/r/settings

Gerrit-MessageType: merged
Gerrit-Change-Id: I165bbc3f56394fd135d21c982695cfb21ba37b8c
Gerrit-PatchSet: 1
Gerrit-Project: mediawiki/extensions/PluggableAuth
Gerrit-Branch: master
Gerrit-Owner: MarkAHershberger 
Gerrit-Reviewer: Cicalese 
Gerrit-Reviewer: jenkins-bot <>

___
MediaWiki-commits mailing list
MediaWiki-commits@lists.wikimedia.org
https://lists.wikimedia.org/mailman/listinfo/mediawiki-commits


[MediaWiki-commits] [Gerrit] mediawiki/core[master]: Use short type bool/int in param documentation

2017-08-20 Thread Umherirrender (Code Review)
Umherirrender has uploaded a new change for review. ( 
https://gerrit.wikimedia.org/r/372785 )

Change subject: Use short type bool/int in param documentation
..

Use short type bool/int in param documentation

Enable the phpcs sniffs for this and used phpcbf

Change-Id: Iaa36687154ddd2bf663b9dd519f5c99409d37925
---
M includes/Block.php
M includes/Category.php
M includes/EditPage.php
M includes/MediaWiki.php
M includes/MergeHistory.php
M includes/OutputPage.php
M includes/Revision.php
M includes/SiteStats.php
M includes/StreamFile.php
M includes/api/ApiParamInfo.php
M includes/auth/AuthManager.php
M includes/auth/CreateFromLoginAuthenticationRequest.php
M includes/cache/HTMLFileCache.php
M includes/cache/MessageCache.php
M includes/collation/IcuCollation.php
M includes/config/EtcdConfig.php
M includes/dao/DBAccessObjectUtils.php
M includes/dao/IDBAccessObject.php
M includes/deferred/DeferredUpdates.php
M includes/deferred/LinksDeletionUpdate.php
M includes/deferred/LinksUpdate.php
M includes/exception/MWExceptionRenderer.php
M includes/filerepo/FileBackendDBRepoWrapper.php
M includes/filerepo/ForeignAPIRepo.php
M includes/filerepo/file/File.php
M includes/htmlform/HTMLForm.php
M includes/htmlform/HTMLFormField.php
M includes/htmlform/fields/HTMLFormFieldWithButton.php
M includes/jobqueue/jobs/CategoryMembershipChangeJob.php
M includes/jobqueue/jobs/RefreshLinksJob.php
M includes/libs/GenericArrayObject.php
M includes/libs/HashRing.php
M includes/libs/MultiHttpClient.php
M includes/libs/filebackend/HTTPFileStreamer.php
M includes/libs/objectcache/BagOStuff.php
M includes/libs/objectcache/HashBagOStuff.php
M includes/libs/objectcache/MultiWriteBagOStuff.php
M includes/libs/objectcache/RESTBagOStuff.php
M includes/libs/objectcache/WANObjectCache.php
M includes/libs/objectcache/WANObjectCacheReaper.php
M includes/libs/rdbms/ChronologyProtector.php
M includes/libs/rdbms/TransactionProfiler.php
M includes/libs/rdbms/database/Database.php
M includes/libs/rdbms/database/IDatabase.php
M includes/libs/rdbms/database/position/MySQLMasterPos.php
M includes/libs/rdbms/database/resultwrapper/MssqlResultWrapper.php
M includes/libs/rdbms/exception/DBQueryError.php
M includes/libs/rdbms/lbfactory/ILBFactory.php
M includes/libs/rdbms/loadbalancer/LoadBalancer.php
M includes/libs/rdbms/loadmonitor/ILoadMonitor.php
M includes/libs/rdbms/loadmonitor/LoadMonitor.php
M includes/libs/stats/BufferingStatsdDataFactory.php
M includes/libs/stats/IBufferingStatsdDataFactory.php
M includes/libs/stats/NullStatsdDataFactory.php
M includes/libs/stats/SamplingStatsdClient.php
M includes/page/Article.php
M includes/page/WikiPage.php
M includes/parser/ParserOutput.php
M includes/parser/Preprocessor_Hash.php
M includes/revisiondelete/RevDelItem.php
M includes/revisiondelete/RevisionDeleter.php
M includes/services/ServiceContainer.php
M includes/session/CookieSessionProvider.php
M includes/specials/SpecialMediaStatistics.php
M includes/tidy/Balancer.php
M includes/tidy/RemexCompatMunger.php
M includes/upload/UploadBase.php
M includes/user/User.php
M includes/utils/BatchRowIterator.php
M includes/utils/UIDGenerator.php
M includes/widget/SearchInputWidget.php
M includes/widget/SelectWithInputWidget.php
M languages/Language.php
M maintenance/Maintenance.php
M maintenance/namespaceDupes.php
M maintenance/rebuildrecentchanges.php
M phpcs.xml
M tests/parser/ParserTestRunner.php
M tests/phpunit/includes/libs/objectcache/WANObjectCacheTest.php
79 files changed, 205 insertions(+), 209 deletions(-)


  git pull ssh://gerrit.wikimedia.org:29418/mediawiki/core 
refs/changes/85/372785/1

diff --git a/includes/Block.php b/includes/Block.php
index 843ea54..5066038 100644
--- a/includes/Block.php
+++ b/includes/Block.php
@@ -1513,7 +1513,7 @@
 *
 * @param string $cookieValue The string in which to find the ID.
 *
-* @return integer|null The block ID, or null if the HMAC is present 
and invalid.
+* @return int|null The block ID, or null if the HMAC is present and 
invalid.
 */
public static function getIdFromCookieValue( $cookieValue ) {
// Extract the ID prefix from the cookie value (may be the 
whole value, if no bang found).
diff --git a/includes/Category.php b/includes/Category.php
index c22ea64..629962d 100644
--- a/includes/Category.php
+++ b/includes/Category.php
@@ -48,7 +48,7 @@
 
/**
 * Set up all member variables using a database query.
-* @param integer $mode
+* @param int $mode
 * @throws MWException
 * @return bool True on success, false on failure.
 */
diff --git a/includes/EditPage.php b/includes/EditPage.php
index 49341c5..914e7aa 100644
--- a/includes/EditPage.php
+++ b/includes/EditPage.php
@@ -336,7 +336,7 @@
/** @var string */
public $edittime = '';
 
-   /** @var integer */
+   /** @var int */
private $editRevId = 

[MediaWiki-commits] [Gerrit] mediawiki/skins[master]: Archive Blueprint Skin

2017-08-20 Thread Umherirrender (Code Review)
Umherirrender has submitted this change and it was merged. ( 
https://gerrit.wikimedia.org/r/372781 )

Change subject: Archive Blueprint Skin
..


Archive Blueprint Skin

Bug: T173653
Change-Id: Ifb73fbbe3c96dcdd3852fb5330557b7a05090791
---
M .gitmodules
D Blueprint
2 files changed, 0 insertions(+), 5 deletions(-)

Approvals:
  Umherirrender: Verified; Looks good to me, approved



diff --git a/.gitmodules b/.gitmodules
index 697d880..67dcebf 100644
--- a/.gitmodules
+++ b/.gitmodules
@@ -10,10 +10,6 @@
path = BlueSpiceSkin
url = https://gerrit.wikimedia.org/r/mediawiki/skins/BlueSpiceSkin
branch = .
-[submodule "Blueprint"]
-   path = Blueprint
-   url = https://gerrit.wikimedia.org/r/mediawiki/skins/Blueprint
-   branch = .
 [submodule "Bouquet"]
path = Bouquet
url = https://gerrit.wikimedia.org/r/mediawiki/skins/Bouquet
diff --git a/Blueprint b/Blueprint
deleted file mode 16
index fc163e4..000
--- a/Blueprint
+++ /dev/null
@@ -1 +0,0 @@
-Subproject commit fc163e4377bace1e7b707822ecd0d193a7433f22

-- 
To view, visit https://gerrit.wikimedia.org/r/372781
To unsubscribe, visit https://gerrit.wikimedia.org/r/settings

Gerrit-MessageType: merged
Gerrit-Change-Id: Ifb73fbbe3c96dcdd3852fb5330557b7a05090791
Gerrit-PatchSet: 2
Gerrit-Project: mediawiki/skins
Gerrit-Branch: master
Gerrit-Owner: MarcoAurelio 
Gerrit-Reviewer: Legoktm 
Gerrit-Reviewer: Umherirrender 

___
MediaWiki-commits mailing list
MediaWiki-commits@lists.wikimedia.org
https://lists.wikimedia.org/mailman/listinfo/mediawiki-commits


[MediaWiki-commits] [Gerrit] pywikibot/core[master]: [i18n] Add serbian templates and section titles to noreferen...

2017-08-20 Thread Dvorapa (Code Review)
Dvorapa has uploaded a new change for review. ( 
https://gerrit.wikimedia.org/r/372784 )

Change subject: [i18n] Add serbian templates and section titles to 
noreferences.py
..

[i18n] Add serbian templates and section titles to noreferences.py

Bug: T173651
Change-Id: I0f5bd3f36d4432c6f438c8083a63abd825a3f2fb
---
M scripts/noreferences.py
1 file changed, 11 insertions(+), 0 deletions(-)


  git pull ssh://gerrit.wikimedia.org:29418/pywikibot/core 
refs/changes/84/372784/1

diff --git a/scripts/noreferences.py b/scripts/noreferences.py
index 3a3be25..ee304a7 100755
--- a/scripts/noreferences.py
+++ b/scripts/noreferences.py
@@ -200,6 +200,12 @@
 'sk': [
 u'Pozri aj',
 ],
+'sr': [
+'Даље читање',
+'Спољашње вете',
+'Види још',
+'Напомене',
+],
 'szl': [
 u'Przipisy',
 u'Připisy',
@@ -347,6 +353,9 @@
 'sk': [
 u'Referencie',
 ],
+'sr': [
+'Референце',
+],
 'szl': [
 u'Przipisy',
 u'Připisy',
@@ -408,6 +417,7 @@
 'ru': [u'Reflist', u'Ref-list', u'Refs', u'Sources',
u'Примечания', u'Список примечаний',
u'Сноска', u'Сноски'],
+'sr': ['Reflist'],
 'szl': [u'Przipisy', u'Připisy'],
 'th': [u'รายการอ้างอิง'],
 'zh': [u'Reflist', u'RefFoot', u'NoteFoot'],
@@ -430,6 +440,7 @@
 'hu': u'{{Források}}',
 'pl': u'{{Przypisy}}',
 'ru': u'{{примечания}}',
+'sr': '{{reflist}}',
 'szl': u'{{Przipisy}}',
 'th': u'{{รายการอ้างอิง}}',
 'zh': u'{{reflist}}',

-- 
To view, visit https://gerrit.wikimedia.org/r/372784
To unsubscribe, visit https://gerrit.wikimedia.org/r/settings

Gerrit-MessageType: newchange
Gerrit-Change-Id: I0f5bd3f36d4432c6f438c8083a63abd825a3f2fb
Gerrit-PatchSet: 1
Gerrit-Project: pywikibot/core
Gerrit-Branch: master
Gerrit-Owner: Dvorapa 

___
MediaWiki-commits mailing list
MediaWiki-commits@lists.wikimedia.org
https://lists.wikimedia.org/mailman/listinfo/mediawiki-commits


[MediaWiki-commits] [Gerrit] mediawiki...Wikidata[master]: New Wikidata Build - 2017-08-20T10:00:01+0000

2017-08-20 Thread WikidataBuilder (Code Review)
WikidataBuilder has uploaded a new change for review. ( 
https://gerrit.wikimedia.org/r/372783 )

Change subject: New Wikidata Build - 2017-08-20T10:00:01+
..

New Wikidata Build - 2017-08-20T10:00:01+

Change-Id: Ibdaa541a4335cafec730f5f929b0e9ebb230dfac
---
M composer.lock
R extensions/ArticlePlaceholder/.stylelintrc.json
M extensions/ArticlePlaceholder/Gruntfile.js
R extensions/Constraints/.stylelintrc.json
M extensions/Constraints/Gruntfile.js
M extensions/Constraints/build/travis/before_script.sh
M extensions/Constraints/i18n/de.json
M extensions/Constraints/i18n/fr.json
M extensions/Constraints/i18n/he.json
M extensions/Constraints/i18n/hi.json
M extensions/Constraints/i18n/pt.json
M extensions/Constraints/tests/phpunit/Helper/ConstraintParameterParserTest.php
R extensions/MediaInfo/.stylelintrc.json
M extensions/MediaInfo/Gruntfile.js
R extensions/Quality/.stylelintrc.json
M extensions/Quality/Gruntfile.js
R extensions/Wikibase/.stylelintrc.json
M extensions/Wikibase/Gruntfile.js
M extensions/Wikibase/client/i18n/ais.json
M extensions/Wikibase/client/i18n/shi.json
M extensions/Wikibase/lib/i18n/nn.json
A extensions/Wikibase/repo/i18n/ais.json
M extensions/Wikibase/repo/i18n/ar.json
M extensions/Wikibase/repo/i18n/ast.json
M extensions/Wikibase/repo/i18n/bn.json
M extensions/Wikibase/repo/i18n/de.json
M extensions/Wikibase/repo/i18n/en.json
M extensions/Wikibase/repo/i18n/et.json
M extensions/Wikibase/repo/i18n/fr.json
M extensions/Wikibase/repo/i18n/he.json
M extensions/Wikibase/repo/i18n/hi.json
M extensions/Wikibase/repo/i18n/ko.json
M extensions/Wikibase/repo/i18n/nb.json
M extensions/Wikibase/repo/i18n/pl.json
M extensions/Wikibase/repo/i18n/pt.json
M extensions/Wikibase/repo/i18n/qqq.json
M extensions/Wikibase/repo/i18n/roa-tara.json
M extensions/Wikibase/repo/i18n/sv.json
M extensions/Wikibase/repo/i18n/zh-hans.json
M extensions/Wikibase/repo/includes/Api/ApiErrorReporter.php
M extensions/Wikibase/repo/tests/phpunit/includes/Api/ApiErrorReporterTest.php
R extensions/Wikidata.org/.stylelintrc.json
M extensions/Wikidata.org/Gruntfile.js
M extensions/Wikidata.org/i18n/da.json
R extensions/WikimediaBadges/.stylelintrc.json
M extensions/WikimediaBadges/Gruntfile.js
M vendor/composer/installed.json
47 files changed, 242 insertions(+), 150 deletions(-)


  git pull ssh://gerrit.wikimedia.org:29418/mediawiki/extensions/Wikidata 
refs/changes/83/372783/1

diff --git a/composer.lock b/composer.lock
index 80a2c79..fbfe94c 100644
--- a/composer.lock
+++ b/composer.lock
@@ -763,12 +763,12 @@
 "source": {
 "type": "git",
 "url": 
"https://github.com/wikimedia/mediawiki-extensions-ArticlePlaceholder.git;,
-"reference": "d0ea2cb2de03892d5968131d3436b1308489"
+"reference": "e4ce659bd28f64522171e9ab14421378749e6429"
 },
 "dist": {
 "type": "zip",
-"url": 
"https://api.github.com/repos/wikimedia/mediawiki-extensions-ArticlePlaceholder/zipball/d0ea2cb2de03892d5968131d3436b1308489;,
-"reference": "d0ea2cb2de03892d5968131d3436b1308489",
+"url": 
"https://api.github.com/repos/wikimedia/mediawiki-extensions-ArticlePlaceholder/zipball/e4ce659bd28f64522171e9ab14421378749e6429;,
+"reference": "e4ce659bd28f64522171e9ab14421378749e6429",
 "shasum": ""
 },
 "require": {
@@ -797,7 +797,7 @@
 ],
 "description": "Provides a special page with Wikibase information 
about a certain topic, with invitation to create an article for the topic",
 "homepage": 
"https://www.mediawiki.org/wiki/Extension:ArticlePlaceholder;,
-"time": "2017-08-16 12:43:26"
+"time": "2017-08-19 06:54:37"
 },
 {
 "name": "propertysuggester/property-suggester",
@@ -920,7 +920,7 @@
 "source": {
 "type": "git",
 "url": 
"https://gerrit.wikimedia.org/r/mediawiki/extensions/Wikidata.org;,
-"reference": "6a6123ec595492512dfe855200df958fd785becd"
+"reference": "3d2ace3cc45bd7a416854a700efc1de6f60f21bf"
 },
 "require": {
 "php": ">=5.5.9"
@@ -965,7 +965,7 @@
 "support": {
 "irc": "irc://irc.freenode.net/wikidata"
 },
-"time": "2017-08-08 21:09:56"
+"time": "2017-08-19 21:16:40"
 },
 {
 "name": "wikibase/constraints",
@@ -973,7 +973,7 @@
 "source": {
 "type": "git",
 "url": 
"https://gerrit.wikimedia.org/r/mediawiki/extensions/WikibaseQualityConstraints;,
-"reference": "d3d4183fe522abfe7b1ab3e1fab391370f8dc795"
+"reference": "ac1312606e118062b85976b90ab409be300dd69a"
 },
 

[MediaWiki-commits] [Gerrit] mediawiki/skins[master]: Archive Blueprint Skin

2017-08-20 Thread MarcoAurelio (Code Review)
MarcoAurelio has uploaded a new change for review. ( 
https://gerrit.wikimedia.org/r/372781 )

Change subject: Archive Blueprint Skin
..

Archive Blueprint Skin

Bug: T173653
Change-Id: Ifb73fbbe3c96dcdd3852fb5330557b7a05090791
---
M .gitmodules
D Blueprint
2 files changed, 0 insertions(+), 5 deletions(-)


  git pull ssh://gerrit.wikimedia.org:29418/mediawiki/skins 
refs/changes/81/372781/2

diff --git a/.gitmodules b/.gitmodules
index 697d880..67dcebf 100644
--- a/.gitmodules
+++ b/.gitmodules
@@ -10,10 +10,6 @@
path = BlueSpiceSkin
url = https://gerrit.wikimedia.org/r/mediawiki/skins/BlueSpiceSkin
branch = .
-[submodule "Blueprint"]
-   path = Blueprint
-   url = https://gerrit.wikimedia.org/r/mediawiki/skins/Blueprint
-   branch = .
 [submodule "Bouquet"]
path = Bouquet
url = https://gerrit.wikimedia.org/r/mediawiki/skins/Bouquet
diff --git a/Blueprint b/Blueprint
deleted file mode 16
index fc163e4..000
--- a/Blueprint
+++ /dev/null
@@ -1 +0,0 @@
-Subproject commit fc163e4377bace1e7b707822ecd0d193a7433f22

-- 
To view, visit https://gerrit.wikimedia.org/r/372781
To unsubscribe, visit https://gerrit.wikimedia.org/r/settings

Gerrit-MessageType: newchange
Gerrit-Change-Id: Ifb73fbbe3c96dcdd3852fb5330557b7a05090791
Gerrit-PatchSet: 2
Gerrit-Project: mediawiki/skins
Gerrit-Branch: master
Gerrit-Owner: MarcoAurelio 

___
MediaWiki-commits mailing list
MediaWiki-commits@lists.wikimedia.org
https://lists.wikimedia.org/mailman/listinfo/mediawiki-commits


[MediaWiki-commits] [Gerrit] pywikibot/core[master]: travis.yml: Print the length and type of config.authenticate...

2017-08-20 Thread jenkins-bot (Code Review)
jenkins-bot has submitted this change and it was merged. ( 
https://gerrit.wikimedia.org/r/372778 )

Change subject: travis.yml: Print the length and type of config.authenticate 
values
..


travis.yml: Print the length and type of config.authenticate values

This is a temporary means to help us confirm that authenticate values are
initially set with correct type and format in user-config.py (or not).

Bug: T173498
Change-Id: I7b6f057477ec5793c33e0e5d3bd02a2e0a677e8d
---
M .travis.yml
1 file changed, 1 insertion(+), 0 deletions(-)

Approvals:
  jenkins-bot: Verified
  Xqt: Looks good to me, approved



diff --git a/.travis.yml b/.travis.yml
index 1541421..c5a9928 100644
--- a/.travis.yml
+++ b/.travis.yml
@@ -90,6 +90,7 @@
   fi ;
 fi
   - echo "authenticate['wiki.musicbrainz.org'] = ('NOTSPAM', 'NOTSPAM')" >> 
~/.pywikibot/user-config.py ;
+  - python -c "from __future__ import print_function;from pywikibot import 
config as c; a=c.authenticate; [(print('authenticate_key:', i), 
print('authenticate_value_type:', type(a[i])), 
print('authenticate_value_length:', len(a[i]))) for i in a]"  # T173498
 
   - echo "max_retries = 2" >> ~/.pywikibot/user-config.py
   - echo "maximum_GET_length = 5000" >> ~/.pywikibot/user-config.py

-- 
To view, visit https://gerrit.wikimedia.org/r/372778
To unsubscribe, visit https://gerrit.wikimedia.org/r/settings

Gerrit-MessageType: merged
Gerrit-Change-Id: I7b6f057477ec5793c33e0e5d3bd02a2e0a677e8d
Gerrit-PatchSet: 1
Gerrit-Project: pywikibot/core
Gerrit-Branch: master
Gerrit-Owner: Dalba 
Gerrit-Reviewer: John Vandenberg 
Gerrit-Reviewer: Xqt 
Gerrit-Reviewer: jenkins-bot <>

___
MediaWiki-commits mailing list
MediaWiki-commits@lists.wikimedia.org
https://lists.wikimedia.org/mailman/listinfo/mediawiki-commits


[MediaWiki-commits] [Gerrit] integration/config[master]: Add Melos to trusted user list

2017-08-20 Thread MarcoAurelio (Code Review)
MarcoAurelio has uploaded a new change for review. ( 
https://gerrit.wikimedia.org/r/372780 )

Change subject: Add Melos to trusted user list
..

Add Melos to trusted user list

While not an owner of a lot of patches, Melos is a long-term Wikimedian
and a steward, working recently on CentralAuth. Zuul running complete
tests on his patches will save us a lot of time doing "recheck"; and he
can be certainly trusted.

Change-Id: I8848244acb11f03c1ea01eb51634b859e6b0acd2
---
M zuul/layout.yaml
1 file changed, 2 insertions(+), 0 deletions(-)


  git pull ssh://gerrit.wikimedia.org:29418/integration/config 
refs/changes/80/372780/2

diff --git a/zuul/layout.yaml b/zuul/layout.yaml
index 682f40c..99f1e10 100644
--- a/zuul/layout.yaml
+++ b/zuul/layout.yaml
@@ -238,6 +238,7 @@
 | w@mzmcbride\.com
 | washuu@gmail\.com
 | wctaiwan@gmail\.com
+| webmelos@gmail\.com
 | whym@whym\.org
 | wiki@physikerwelt\.de
 | wikimedia\.org@eddie-sh\.de
@@ -469,6 +470,7 @@
- ^zhorishna@gmail\.com$ # Isarra
- ^zhuyifei1999@gmail\.com$
- ^mwalker@khaosdev\.com$ # Matt Walker
+   - ^webmelos@gmail\.com$ # Melos
 
# Pywikibot related
- ^alexsh@mail2000\.com\.tw$  # Alex S.H. Lin

-- 
To view, visit https://gerrit.wikimedia.org/r/372780
To unsubscribe, visit https://gerrit.wikimedia.org/r/settings

Gerrit-MessageType: newchange
Gerrit-Change-Id: I8848244acb11f03c1ea01eb51634b859e6b0acd2
Gerrit-PatchSet: 2
Gerrit-Project: integration/config
Gerrit-Branch: master
Gerrit-Owner: MarcoAurelio 
Gerrit-Reviewer: jenkins-bot <>

___
MediaWiki-commits mailing list
MediaWiki-commits@lists.wikimedia.org
https://lists.wikimedia.org/mailman/listinfo/mediawiki-commits


[MediaWiki-commits] [Gerrit] pywikibot...xqbot[master]: [bugfix] Update notification info

2017-08-20 Thread jenkins-bot (Code Review)
jenkins-bot has submitted this change and it was merged. ( 
https://gerrit.wikimedia.org/r/372779 )

Change subject: [bugfix] Update notification info
..


[bugfix] Update notification info

Change-Id: If297135992af2d981bcc3704cf82640303946241
---
M imagereview.py
1 file changed, 8 insertions(+), 5 deletions(-)

Approvals:
  jenkins-bot: Verified
  Xqt: Looks good to me, approved



diff --git a/imagereview.py b/imagereview.py
index 523ca1b..7e8cd30 100644
--- a/imagereview.py
+++ b/imagereview.py
@@ -121,7 +121,7 @@
 u' einleiten und den Sachverhalt und die Nachweise darlegen.',
 'Freigabe': remark['Freigabe'],
 'Gezeigtes Werk':
-u'Gezeigtes Werk:'
+'Gezeigtes Werk:'
 ' Um ein Foto, das ein urheberrechtlich geschütztes Werk einer anderen'
 ' Person (z.B. ein Foto eines Plakats oder eine Nachzeichnung eines'
 ' Gemäldes) zeigt, hochzuladen brauchst du eine Erlaubnis. Bitte den'
@@ -407,11 +407,12 @@
 """
 Inform user.
 
-data = [title(asLink=True),
+data = [[title(asLink=True),
 [user, timestamp],
 DUP_Image{},
-,
-]
+,
+  # reserved for notification info
+], ]
 """
 # verstorbene
 ignoreUser = set()
@@ -562,7 +563,9 @@
 
 if not where:
 where = 'Unbekannt' if not upm.isRegistered() else 'Gar nicht'
-a[4] = where
+
+for entry in data:  # add notification notes
+entry[4] = where
 
 # jetzt alle Dateien eines Benutzers bearbeiten
 for i in images:

-- 
To view, visit https://gerrit.wikimedia.org/r/372779
To unsubscribe, visit https://gerrit.wikimedia.org/r/settings

Gerrit-MessageType: merged
Gerrit-Change-Id: If297135992af2d981bcc3704cf82640303946241
Gerrit-PatchSet: 1
Gerrit-Project: pywikibot/bots/xqbot
Gerrit-Branch: master
Gerrit-Owner: Xqt 
Gerrit-Reviewer: Xqt 
Gerrit-Reviewer: jenkins-bot <>

___
MediaWiki-commits mailing list
MediaWiki-commits@lists.wikimedia.org
https://lists.wikimedia.org/mailman/listinfo/mediawiki-commits


[MediaWiki-commits] [Gerrit] pywikibot...xqbot[master]: [bugfix] Update notification info

2017-08-20 Thread Xqt (Code Review)
Xqt has uploaded a new change for review. ( 
https://gerrit.wikimedia.org/r/372779 )

Change subject: [bugfix] Update notification info
..

[bugfix] Update notification info

Change-Id: If297135992af2d981bcc3704cf82640303946241
---
M imagereview.py
1 file changed, 8 insertions(+), 5 deletions(-)


  git pull ssh://gerrit.wikimedia.org:29418/pywikibot/bots/xqbot 
refs/changes/79/372779/1

diff --git a/imagereview.py b/imagereview.py
index 523ca1b..7e8cd30 100644
--- a/imagereview.py
+++ b/imagereview.py
@@ -121,7 +121,7 @@
 u' einleiten und den Sachverhalt und die Nachweise darlegen.',
 'Freigabe': remark['Freigabe'],
 'Gezeigtes Werk':
-u'Gezeigtes Werk:'
+'Gezeigtes Werk:'
 ' Um ein Foto, das ein urheberrechtlich geschütztes Werk einer anderen'
 ' Person (z.B. ein Foto eines Plakats oder eine Nachzeichnung eines'
 ' Gemäldes) zeigt, hochzuladen brauchst du eine Erlaubnis. Bitte den'
@@ -407,11 +407,12 @@
 """
 Inform user.
 
-data = [title(asLink=True),
+data = [[title(asLink=True),
 [user, timestamp],
 DUP_Image{},
-,
-]
+,
+  # reserved for notification info
+], ]
 """
 # verstorbene
 ignoreUser = set()
@@ -562,7 +563,9 @@
 
 if not where:
 where = 'Unbekannt' if not upm.isRegistered() else 'Gar nicht'
-a[4] = where
+
+for entry in data:  # add notification notes
+entry[4] = where
 
 # jetzt alle Dateien eines Benutzers bearbeiten
 for i in images:

-- 
To view, visit https://gerrit.wikimedia.org/r/372779
To unsubscribe, visit https://gerrit.wikimedia.org/r/settings

Gerrit-MessageType: newchange
Gerrit-Change-Id: If297135992af2d981bcc3704cf82640303946241
Gerrit-PatchSet: 1
Gerrit-Project: pywikibot/bots/xqbot
Gerrit-Branch: master
Gerrit-Owner: Xqt 

___
MediaWiki-commits mailing list
MediaWiki-commits@lists.wikimedia.org
https://lists.wikimedia.org/mailman/listinfo/mediawiki-commits


[MediaWiki-commits] [Gerrit] pywikibot/core[master]: travis.yml: Print the length and type of config.authenticate...

2017-08-20 Thread Dalba (Code Review)
Dalba has uploaded a new change for review. ( 
https://gerrit.wikimedia.org/r/372778 )

Change subject: travis.yml: Print the length and type of config.authenticate 
values
..

travis.yml: Print the length and type of config.authenticate values

This is a temporary means to help us confirm that authenticate values are
initially set with correct type and format in user-config.py (or not).

Bug: T173498
Change-Id: I7b6f057477ec5793c33e0e5d3bd02a2e0a677e8d
---
M .travis.yml
1 file changed, 1 insertion(+), 0 deletions(-)


  git pull ssh://gerrit.wikimedia.org:29418/pywikibot/core 
refs/changes/78/372778/1

diff --git a/.travis.yml b/.travis.yml
index 1541421..c5a9928 100644
--- a/.travis.yml
+++ b/.travis.yml
@@ -90,6 +90,7 @@
   fi ;
 fi
   - echo "authenticate['wiki.musicbrainz.org'] = ('NOTSPAM', 'NOTSPAM')" >> 
~/.pywikibot/user-config.py ;
+  - python -c "from __future__ import print_function;from pywikibot import 
config as c; a=c.authenticate; [(print('authenticate_key:', i), 
print('authenticate_value_type:', type(a[i])), 
print('authenticate_value_length:', len(a[i]))) for i in a]"  # T173498
 
   - echo "max_retries = 2" >> ~/.pywikibot/user-config.py
   - echo "maximum_GET_length = 5000" >> ~/.pywikibot/user-config.py

-- 
To view, visit https://gerrit.wikimedia.org/r/372778
To unsubscribe, visit https://gerrit.wikimedia.org/r/settings

Gerrit-MessageType: newchange
Gerrit-Change-Id: I7b6f057477ec5793c33e0e5d3bd02a2e0a677e8d
Gerrit-PatchSet: 1
Gerrit-Project: pywikibot/core
Gerrit-Branch: master
Gerrit-Owner: Dalba 

___
MediaWiki-commits mailing list
MediaWiki-commits@lists.wikimedia.org
https://lists.wikimedia.org/mailman/listinfo/mediawiki-commits


[MediaWiki-commits] [Gerrit] operations/mediawiki-config[master]: Add new logo for the Baskhir Wikibooks

2017-08-20 Thread Odder (Code Review)
Odder has uploaded a new change for review. ( 
https://gerrit.wikimedia.org/r/372777 )

Change subject: Add new logo for the Baskhir Wikibooks
..

Add new logo for the Baskhir Wikibooks

This patch adds a localised logo for the newly-reopened
Bashkir Wikibooks project as per community request.

The logo uses the classic Wikibooks design with a Bashkir
translation provided by the community.

All files have been optimised with opting -o 7 as usual.

Bug: T173471
Change-Id: I79e98fee25e0a31b16aa85e40ad0a5e6bcb9fd3e
---
A static/images/project-logos/bawikibooks-1.5x.png
A static/images/project-logos/bawikibooks-2x.png
M static/images/project-logos/bawikibooks.png
3 files changed, 0 insertions(+), 0 deletions(-)


  git pull ssh://gerrit.wikimedia.org:29418/operations/mediawiki-config 
refs/changes/77/372777/1

diff --git a/static/images/project-logos/bawikibooks-1.5x.png 
b/static/images/project-logos/bawikibooks-1.5x.png
new file mode 100644
index 000..0a55b55
--- /dev/null
+++ b/static/images/project-logos/bawikibooks-1.5x.png
Binary files differ
diff --git a/static/images/project-logos/bawikibooks-2x.png 
b/static/images/project-logos/bawikibooks-2x.png
new file mode 100644
index 000..28fd782
--- /dev/null
+++ b/static/images/project-logos/bawikibooks-2x.png
Binary files differ
diff --git a/static/images/project-logos/bawikibooks.png 
b/static/images/project-logos/bawikibooks.png
index 28093fd..3d55523 100644
--- a/static/images/project-logos/bawikibooks.png
+++ b/static/images/project-logos/bawikibooks.png
Binary files differ

-- 
To view, visit https://gerrit.wikimedia.org/r/372777
To unsubscribe, visit https://gerrit.wikimedia.org/r/settings

Gerrit-MessageType: newchange
Gerrit-Change-Id: I79e98fee25e0a31b16aa85e40ad0a5e6bcb9fd3e
Gerrit-PatchSet: 1
Gerrit-Project: operations/mediawiki-config
Gerrit-Branch: master
Gerrit-Owner: Odder 

___
MediaWiki-commits mailing list
MediaWiki-commits@lists.wikimedia.org
https://lists.wikimedia.org/mailman/listinfo/mediawiki-commits


[MediaWiki-commits] [Gerrit] pywikibot...xqbot[master]: [IMPR] Some improvements

2017-08-20 Thread jenkins-bot (Code Review)
jenkins-bot has submitted this change and it was merged. ( 
https://gerrit.wikimedia.org/r/372776 )

Change subject: [IMPR] Some improvements
..


[IMPR] Some improvements

- change table columns
- use last activity instead of last edit

Change-Id: Ia5cafb3fee3c6a09831dc1538b2f1c0dee695a2e
---
M imagereview.py
1 file changed, 6 insertions(+), 4 deletions(-)

Approvals:
  jenkins-bot: Verified
  Xqt: Looks good to me, approved



diff --git a/imagereview.py b/imagereview.py
index 0bfebad..523ca1b 100644
--- a/imagereview.py
+++ b/imagereview.py
@@ -682,7 +682,7 @@
 text = """
 {| class="wikitable sortable"
 |-
-! Datei || Uploader || Zeitstempel || Benachrichtigt || Letzte Aktivität
+! Datei || Zeitstempel || Uploader || Benachrichtigt || Letzte Aktivität
 |-
 """
 if self.getOption('check'):
@@ -724,9 +724,11 @@
 ##   % (a[2].title(), key)
 username, timestamp = fileinfo
 user = pywikibot.User(self.site, username)
-lastedit = next(user.contributions(total=1))[2]
-text += ('| {filename} || [[Benutzer:{username}]] |'
- '| {timestamp} || {notified} || {lastedit}\n|- \n'
+lastevent = next(iter(self.site.logevents(
+user=username, total=1))).timestamp().isoformat()
+text += ('| {filename} || {timestamp} |'
+ '| [[Benutzer:{username}]] || {notified} |'
+ '| {lastevent}\n|- \n'
  .format(**locals()))
 text += u'|}'
 if save:

-- 
To view, visit https://gerrit.wikimedia.org/r/372776
To unsubscribe, visit https://gerrit.wikimedia.org/r/settings

Gerrit-MessageType: merged
Gerrit-Change-Id: Ia5cafb3fee3c6a09831dc1538b2f1c0dee695a2e
Gerrit-PatchSet: 1
Gerrit-Project: pywikibot/bots/xqbot
Gerrit-Branch: master
Gerrit-Owner: Xqt 
Gerrit-Reviewer: Xqt 
Gerrit-Reviewer: jenkins-bot <>

___
MediaWiki-commits mailing list
MediaWiki-commits@lists.wikimedia.org
https://lists.wikimedia.org/mailman/listinfo/mediawiki-commits


[MediaWiki-commits] [Gerrit] pywikibot...xqbot[master]: [IMPR] Some improvements

2017-08-20 Thread Xqt (Code Review)
Xqt has uploaded a new change for review. ( 
https://gerrit.wikimedia.org/r/372776 )

Change subject: [IMPR] Some improvements
..

[IMPR] Some improvements

- change table columns
- use last activity instead of last edit

Change-Id: Ia5cafb3fee3c6a09831dc1538b2f1c0dee695a2e
---
M imagereview.py
1 file changed, 6 insertions(+), 4 deletions(-)


  git pull ssh://gerrit.wikimedia.org:29418/pywikibot/bots/xqbot 
refs/changes/76/372776/1

diff --git a/imagereview.py b/imagereview.py
index 0bfebad..523ca1b 100644
--- a/imagereview.py
+++ b/imagereview.py
@@ -682,7 +682,7 @@
 text = """
 {| class="wikitable sortable"
 |-
-! Datei || Uploader || Zeitstempel || Benachrichtigt || Letzte Aktivität
+! Datei || Zeitstempel || Uploader || Benachrichtigt || Letzte Aktivität
 |-
 """
 if self.getOption('check'):
@@ -724,9 +724,11 @@
 ##   % (a[2].title(), key)
 username, timestamp = fileinfo
 user = pywikibot.User(self.site, username)
-lastedit = next(user.contributions(total=1))[2]
-text += ('| {filename} || [[Benutzer:{username}]] |'
- '| {timestamp} || {notified} || {lastedit}\n|- \n'
+lastevent = next(iter(self.site.logevents(
+user=username, total=1))).timestamp().isoformat()
+text += ('| {filename} || {timestamp} |'
+ '| [[Benutzer:{username}]] || {notified} |'
+ '| {lastevent}\n|- \n'
  .format(**locals()))
 text += u'|}'
 if save:

-- 
To view, visit https://gerrit.wikimedia.org/r/372776
To unsubscribe, visit https://gerrit.wikimedia.org/r/settings

Gerrit-MessageType: newchange
Gerrit-Change-Id: Ia5cafb3fee3c6a09831dc1538b2f1c0dee695a2e
Gerrit-PatchSet: 1
Gerrit-Project: pywikibot/bots/xqbot
Gerrit-Branch: master
Gerrit-Owner: Xqt 

___
MediaWiki-commits mailing list
MediaWiki-commits@lists.wikimedia.org
https://lists.wikimedia.org/mailman/listinfo/mediawiki-commits