예제 #1
0
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()
예제 #2
0
 def __init__(self, workspace):
     self.workspace  = WorkSpace(workspace)
     self.config     = self.workspace.workspace('engine.ini')
     
     self._socksrv = SockService()
     self._socksrv.attach(self)