class DataStoreClient: server = None def __init__(self,type, config): print "Init DataStore" from DataStoreServer import DataStoreServer from DataStoreFactory import DataStoreFactory self.server = DataStoreServer(DataStoreFactory,type, config); def getData(self): print "Getting data from server" return self.server.getData() def saveData(self, data, filename=""): print "Saving data to server" return self.server.saveData(data, filename)
def __init__(self,type, config): print "Init DataStore" from DataStoreServer import DataStoreServer from DataStoreFactory import DataStoreFactory self.server = DataStoreServer(DataStoreFactory,type, config);