예제 #1
0
파일: core_migrate.py 프로젝트: DINKIN/XDM
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)
예제 #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)
예제 #3
0
파일: bases.py 프로젝트: Watso4183/XDM
 def completedStatues(self):
     return common.getCompletedStatuses()
예제 #4
0
 def completedStatues(self):
     return common.getCompletedStatuses()