def update_all(self, localUrl, remoteUrl): updater = DownloadModuleUtil() remoteModule = RemoteModuleUtil() modUpdateList = remoteModule.get_module_list(remoteUrl) for modUpdate in modUpdateList: updater.download(remoteUrl + modUpdate, localUrl + modUpdate)
def get_list(self, localUrl, remoteUrl): """ Returns a list of modules requiring updates. """ localModule = localModuleUtil() remoteModule = RemoteModuleUtil() remoteModuleDict = remoteModule.get_module_dict(remoteUrl) localModuleDict = localModule.get_module_dict(localUrl) downloadList = self.build_list(localModuleDict, remoteModuleDict) return downloadList #end #end