code: def _site_login(self, repo):
          
          try:
              if not self.testmode:
                  self.site.login(repo.wiki["user"], repo.wiki["password"])
          except LoginError as e:
              print(e[1]['result'])
          self.basepage = repo.wiki["basepage"]
docs: Logs the user specified in the repo into the wiki.
  
          :arg repo: an instance of config.RepositorySettings with wiki credentials.