Exemplo n.º 1
0
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)
Exemplo n.º 2
0
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)
Exemplo n.º 3
0
 def completedStatues(self):
     return common.getCompletedStatuses()
Exemplo n.º 4
0
 def completedStatues(self):
     return common.getCompletedStatuses()