def migrate_0_4_19(): """Force a refresh on all Elements this is donw because the releasedate was introduced and every element should then use a real datetime object for it """ common.SM.setNewMessage("Migration: Updating all (wanted) elements, not recaching images. This will take a while...(it took 10 minutes on my machine)") tasks.updateAllElements() for mtm in common.PM.MTM: for element in mtm.getElementsWithStatusIn(common.getCompletedStatuses()): common.SM.setNewMessage("Migration: Updating %s (not recaching images)" % element) tasks.updateElement(element)
def migrate_0_4_19(): """Force a refresh on all Elements this is donw because the releasedate was introduced and every element should then use a real datetime object for it """ common.SM.setNewMessage( "Migration: Updating all (wanted) elements, not recaching images. This will take a while...(it took 10 minutes on my machine)" ) tasks.updateAllElements(downloadImages=False) for mtm in common.PM.MTM: for element in mtm.getElementsWithStatusIn( common.getCompletedStatuses()): common.SM.setNewMessage( "Migration: Updating %s (not recaching images)" % element) tasks.updateElement(element, downloadImages=False)
def completedStatues(self): return common.getCompletedStatuses()