MAX_BROWSER_RUN_TIME=25# maximum time for a browser to run
MAX_BROWSER_EXPIRATION=15# seconds that we wait before killing the browser (waiting for the files to be written)
@staticmethod
defconnect():
# XX resim problem peewee.OperationalError: (2006, "MySQL server has gone away (BrokenPipeError(32, 'Broken pipe'))") po 7 hodinach timeoutu
# XX kupodivu pripojeni nemuze byt v dbp DBModel.connect. Prestoze type je pak spravne (MySQLDatabase), nic udelat nejde a pokusy o select konci NoneType.