oxdbarchive/oxdbarchive/cron.py

14 lines
267 B
Python
Raw Normal View History

2007-07-10 12:31:08 +00:00
# -*- Mode: Python; -*-
# -*- coding: utf-8 -*-
# vi:si:et:sw=2:sts=2:ts=2
from model import *
def findeNew():
archive = Archive.get(1)
archive.importFiles()
def extractNew():
for f in ArchiveFile.select(ArchiveFile.q.extracted == False):
f.extractAll()