Xqt has submitted this change and it was merged.

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(+), 45 deletions(-)

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



diff --git a/families/wikidata_family.py b/families/wikidata_family.py
index ac801d4..223d1d5 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', u'P'],
+        }
+
+        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,14 +62,4 @@
         if transcluded:
             return (None, None)
         else:
-            if code == 'wikidata':
-                return ('wikidata', 'wikidata')
-            elif code == 'test':
-                return ('test', 'wikidata')
-            else:
-                return (None, None)
-        
-    def protocol(self, code):
-        if code == 'client':
-            return 'http'
-        return super(Family, self).protocol(code)
+            return (code, self.name)

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

Gerrit-MessageType: merged
Gerrit-Change-Id: I591b67ee2082926189af14cc07448de576f229da
Gerrit-PatchSet: 3
Gerrit-Project: pywikibot/compat
Gerrit-Branch: master
Gerrit-Owner: Xqt <[email protected]>
Gerrit-Reviewer: Xqt <[email protected]>
Gerrit-Reviewer: jenkins-bot

_______________________________________________
MediaWiki-commits mailing list
[email protected]
https://lists.wikimedia.org/mailman/listinfo/mediawiki-commits

Reply via email to