def setup(self): """configure all systems """ from twisted.enterprise import adbapi from twistar.registry import Registry envPath=os.path.join(EnvironmentManager.envPath,"home") dbPath=os.path.join(envPath,"home")+".db" Registry.DBPOOL = adbapi.ConnectionPool("sqlite3",database=dbPath,check_same_thread=False) """this is a required but very cheap hack: since twistard does not support multiple databases, we do not have a "master" database, which causes problems because of the dependencies, and initialization order of different elements, so for now, the "home" database is enforced""" yield UpdateManager.setup() yield DriverManager.setup() yield EnvironmentManager.setup() defer.returnValue(None)