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 update(self, localUrl, remoteUrl): updater = DownloadModuleUtil() modList = List() modUpdateList = modList.get_list(localUrl, remoteUrl) if len(modUpdateList) > 0: for modUpdate in modUpdateList: updater.download(remoteUrl + modUpdate, localUrl + modUpdate)