new documents with examples, raise exception on connection error, close connection if no handshake for 60 sec, log unhandled exceptions, calc object size using guppy, typo fix
This commit is contained in:
parent
44d961aefa
commit
5b5c8acdcb
10 changed files with 75 additions and 23 deletions
|
@ -51,6 +51,15 @@ class Site:
|
|||
self.addEventListeners()
|
||||
|
||||
|
||||
|
||||
def __str__(self):
|
||||
return "Site %s" % self.address_short
|
||||
|
||||
|
||||
def __repr__(self):
|
||||
return "<%s>" % self.__str__()
|
||||
|
||||
|
||||
# Load site settings from data/sites.json
|
||||
def loadSettings(self):
|
||||
sites_settings = json.load(open("data/sites.json"))
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue