class DataEngine(AspectDB): _channel_ = CH_DATAENGINE def __init__(self, workspace): self.workspace = WorkSpace(workspace) self.config = self.workspace.workspace('engine.ini') self._socksrv = SockService() self._socksrv.attach(self) def close(self): self.stop() for drv in set(self._paths.values()): drv.close()
def __init__(self, workspace): self.workspace = WorkSpace(workspace) self.config = self.workspace.workspace('engine.ini') self._socksrv = SockService() self._socksrv.attach(self)