Xqt has uploaded a new change for review.
https://gerrit.wikimedia.org/r/94485
Change subject: Wikidata test client seems to be off
......................................................................
Wikidata test client seems to be off
(update from core gerrit 94484)
Change-Id: I591b67ee2082926189af14cc07448de576f229da
---
M families/wikidata_family.py
1 file changed, 28 insertions(+), 40 deletions(-)
git pull ssh://gerrit.wikimedia.org:29418/pywikibot/compat
refs/changes/85/94485/1
diff --git a/families/wikidata_family.py b/families/wikidata_family.py
index ac801d4..e423d1e 100644
--- a/families/wikidata_family.py
+++ b/families/wikidata_family.py
@@ -13,7 +13,6 @@
self.name = 'wikidata'
self.langs = {
'wikidata': 'www.wikidata.org',
- 'client': 'wikidata-test-client.wikimedia.de',
'test': 'test.wikidata.org',
}
@@ -25,41 +24,35 @@
# You only need to enter translations that differ from _default.
self.namespaces[4] = {
'_default': [u'Wikidata', u'WD', 'Project'],
- 'client': u'Test Wikipedia',
- }
- self.namespaces[5] = {
- '_default': [u'Wikidata talk', u'WT', 'Project talk'],
- 'client': u'Test Wikipedia talk',
- }
- self.namespaces[120] = {
- 'test': u'Property',
- 'wikidata': u'Property',
- }
- self.namespaces[121] = {
- 'test': u'Property talk',
- 'wikidata': u'Property talk',
- }
- self.namespaces[122] = {
- 'test': u'Query',
- 'wikidata': u'Query',
- }
- self.namespaces[123] = {
- 'test': u'Query talk',
- 'wikidata': u'Query talk',
- }
- self.namespaces[1198] = {
- 'test': u'Translations',
- 'wikidata': u'Translations',
- }
- self.namespaces[1199] = {
- 'test': u'Translations talk',
- 'wikidata': u'Translations talk',
}
- def scriptpath(self, code):
- if code == 'client':
- return ''
- return super(Family, self).scriptpath(code)
+ self.namespaces[5] = {
+ '_default': [u'Wikidata talk', u'WT', 'Project talk'],
+ }
+
+ self.namespaces[120] = {
+ '_default': u'Property',
+ }
+
+ self.namespaces[121] = {
+ '_default': u'Property talk',
+ }
+
+ self.namespaces[122] = {
+ '_default': u'Query',
+ }
+
+ self.namespaces[123] = {
+ '_default': u'Query talk',
+ }
+
+ self.namespaces[1198] = {
+ '_default': u'Translations',
+ }
+
+ self.namespaces[1199] = {
+ '_default': u'Translations talk',
+ }
def shared_data_repository(self, code, transcluded=False):
"""Always return a repository tupe. This enables testing whether
@@ -69,12 +62,7 @@
if transcluded:
return (None, None)
else:
- if code == 'wikidata':
- return ('wikidata', 'wikidata')
- elif code == 'test':
- return ('test', 'wikidata')
- else:
- return (None, None)
+ return (code, self.name)
def protocol(self, code):
if code == 'client':
--
To view, visit https://gerrit.wikimedia.org/r/94485
To unsubscribe, visit https://gerrit.wikimedia.org/r/settings
Gerrit-MessageType: newchange
Gerrit-Change-Id: I591b67ee2082926189af14cc07448de576f229da
Gerrit-PatchSet: 1
Gerrit-Project: pywikibot/compat
Gerrit-Branch: master
Gerrit-Owner: Xqt <[email protected]>
_______________________________________________
MediaWiki-commits mailing list
[email protected]
https://lists.wikimedia.org/mailman/listinfo/mediawiki-commits