Ver código fonte

Default to useHTTPS=True for new Sites.

tags/v0.2
Ben Kurtovic 9 anos atrás
pai
commit
b315e9bdc5
2 arquivos alterados com 2 adições e 2 exclusões
  1. +1
    -1
      earwigbot/wiki/site.py
  2. +1
    -1
      earwigbot/wiki/sitesdb.py

+ 1
- 1
earwigbot/wiki/site.py Ver arquivo

@@ -89,7 +89,7 @@ class Site(object):
def __init__(self, name=None, project=None, lang=None, base_url=None,
article_path=None, script_path=None, sql=None,
namespaces=None, login=(None, None), cookiejar=None,
user_agent=None, use_https=False, assert_edit=None,
user_agent=None, use_https=True, assert_edit=None,
maxlag=None, wait_between_queries=2, logger=None,
search_config=None):
"""Constructor for new Site instances.


+ 1
- 1
earwigbot/wiki/sitesdb.py Ver arquivo

@@ -188,7 +188,7 @@ class SitesDB(object):
config = self.config
login = (config.wiki.get("username"), config.wiki.get("password"))
user_agent = config.wiki.get("userAgent")
use_https = config.wiki.get("useHTTPS", False)
use_https = config.wiki.get("useHTTPS", True)
assert_edit = config.wiki.get("assert")
maxlag = config.wiki.get("maxlag")
wait_between_queries = config.wiki.get("waitTime", 2)


Carregando…
Cancelar
Salvar