old_contents: # -*- coding: utf-8  -*-
  
  __version__ = '$Id$'
  
  from pywikibot import family
  
  # The wikidata families
  
  class Family(family.Family):
      def __init__(self):
          family.Family.__init__(self)
          self.name = 'wikidata'
          self.langs = {
              'wikidata': 'wikidata.org',
              'repo': 'wikidata-test-repo.wikimedia.de',
              'client': 'wikidata-test-client.wikimedia.de',
          }
  
      def shared_data_repository(self, code):
          # for here an now we just use the test repo
          # for wikimedia families the method can return wikidata itself
          return ('repo', 'wikidata') if code == 'client' else (None, None)
  
new_contents: # -*- coding: utf-8  -*-
  
  __version__ = '$Id$'
  
  from pywikibot import family
  
  # The wikidata families
  
  class Family(family.Family):
      def __init__(self):
          family.Family.__init__(self)
          self.name = 'wikidata'
          self.langs = {
              'wikidata': 'wikidata.org',
              'repo': 'wikidata-test-repo.wikimedia.de',
              'client': 'wikidata-test-client.wikimedia.de',
          }
  
      def shared_data_repository(self, code, transcluded=False):
          """Always return a repository tupe. This enables testing whether
          the site opject is the repository itself, see Site.is_data_repository()
  
          """
          return ('wikidata',
                  'wikidata') if code == 'wikidata' else ('repo', 'wikidata')
  
subject: enable 'real' wikidata