notify all
This commit is contained in:
parent
21679a5c42
commit
b0981645e6
2 changed files with 9 additions and 1 deletions
|
@ -208,6 +208,14 @@ class Archive(SQLObject):
|
|||
for f in self.files:
|
||||
self.notifyFrontend('add', f.md5sum)
|
||||
|
||||
def fillFrontend(self):
|
||||
data = read_url("%s/list" % self.baseUrlFrontend)
|
||||
files = simplejson.loads(data)
|
||||
md5sums = [str(f['md5sum']) for f in files.values()]
|
||||
for f in ArchiveFile.select(NOT(IN(ArchiveFile.q.md5sum, md5sums))):
|
||||
self.notifyFrontend('add', f.md5sum)
|
||||
|
||||
|
||||
class ArchiveFile(SQLObject):
|
||||
'''
|
||||
ALTER TABLE archive_file CHANGE size size bigint;
|
||||
|
|
|
@ -104,7 +104,7 @@ class GstTimeline:
|
|||
|
||||
def usage():
|
||||
print ""
|
||||
print "usage: %s output_base_path video_file" % sys.argv[0]
|
||||
print "usage: %s output.png video_file" % sys.argv[0]
|
||||
print ""
|
||||
sys.exit(1)
|
||||
|
||||
|
|
Loading…
Reference in a new issue