Explorar el Código

Default to useHTTPS=True for new Sites.

tags/v0.2
Ben Kurtovic hace 9 años
padre
commit
b315e9bdc5
Se han modificado 2 ficheros con 2 adiciones y 2 borrados
  1. +1
    -1
      earwigbot/wiki/site.py
  2. +1
    -1
      earwigbot/wiki/sitesdb.py

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

@@ -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 fichero

@@ -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)


Cargando…
Cancelar
Guardar