Welcome to mirror list, hosted at ThFree Co, Russian Federation.

git.blender.org/blender.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMartin Poirier <theeth@yahoo.com>2009-12-20 01:36:20 +0300
committerMartin Poirier <theeth@yahoo.com>2009-12-20 01:36:20 +0300
commitf3147db0e8ce7c5c0e2352876304c928405c3081 (patch)
treeca3466c8f2f93bc254900b8b47b34fec72326074 /release
parent0da09bd261c7303dc601fa01af02253f2e7213dd (diff)
netrender: list files in job webpage
Diffstat (limited to 'release')
-rw-r--r--release/scripts/io/netrender/master_html.py24
1 files changed, 24 insertions, 0 deletions
diff --git a/release/scripts/io/netrender/master_html.py b/release/scripts/io/netrender/master_html.py
index e556943609f..c0db45db2bc 100644
--- a/release/scripts/io/netrender/master_html.py
+++ b/release/scripts/io/netrender/master_html.py
@@ -137,6 +137,30 @@ def get(handler):
job = handler.server.getJobID(job_id)
if job:
+ output("<h2>Files</h2>")
+
+ startTable()
+ headerTable("path")
+
+ tot_cache = 0
+ tot_fluid = 0
+
+ for file in job.files:
+ if file.filepath.endswith(".bphys"):
+ tot_cache += 1
+ elif file.filepath.endswith(".bobj.gz") or file.filepath.endswith(".bvel.gz"):
+ tot_fluid += 1
+ else:
+ rowTable(file.filepath)
+
+ if tot_cache > 0:
+ rowTable("%i physic cache files" % tot_cache)
+
+ if tot_fluid > 0:
+ rowTable("%i fluid bake files" % tot_fluid)
+
+ endTable()
+
output("<h2>Frames</h2>")
startTable()