Extra debug messages, cleanup unused lines
This commit is contained in:
parent
b63254d15d
commit
bbf1bc163d
3 changed files with 2 additions and 1 deletions
|
@ -144,6 +144,7 @@ class Site(object):
|
|||
new_file.seek(0)
|
||||
diff_success = self.content_manager.verifyFile(file_inner_path, new_file)
|
||||
if diff_success:
|
||||
self.log.debug("Patched successfully: %s" % file_inner_path)
|
||||
new_file.seek(0)
|
||||
self.storage.write(file_inner_path, new_file)
|
||||
self.onFileDone(file_inner_path)
|
||||
|
|
|
@ -48,6 +48,7 @@ class TestSite:
|
|||
assert new_site.storage.query("SELECT * FROM keyvalue WHERE key = 'title'").fetchone()["value"] == "UpdateTest"
|
||||
|
||||
# Re-clone the site
|
||||
site.log.debug("Re-cloning")
|
||||
site.clone("159EGD5srUsMP97UpcLy8AtKQbQLK2AbbL")
|
||||
|
||||
assert new_site.storage.loadJson("data/data.json")["title"] == "UpdateTest"
|
||||
|
|
|
@ -481,7 +481,6 @@ class UiWebsocket(object):
|
|||
# Display confirmation of change
|
||||
cert_current = self.user.certs[domain]
|
||||
body = "You current certificate: <b>%s/%s@%s</b>" % (cert_current["auth_type"], cert_current["auth_user_name"], domain)
|
||||
#body += "<br>Do you want to change it to: <b>%s/%s@%s</b>?" % (auth_type, auth_user_name, domain)
|
||||
self.cmd("confirm", [body, "Change it to %s/%s@%s" % (auth_type, auth_user_name, domain)],
|
||||
lambda (res): self.cbCertAddConfirm(to, domain, auth_type, auth_user_name, cert)
|
||||
)
|
||||
|
|
Loading…
Reference in a new issue