Added file_size column to dataset table, requires db schema alteration:

alter table dataset add column file_size numeric(15,0)
Also added new script update_dataset_size.py
This commit is contained in:
Greg Von Kuster
2008-01-08 16:19:25 +00:00
parent 69505c9cb5
commit 6d80665988
15 changed files with 78 additions and 19 deletions
+2
View File
@@ -26,6 +26,7 @@ def exec_after_process(app, inp_data, out_data, param_dict, tool, stdout, stderr
data = app.datatypes_registry.change_datatype( data, file_type )
data.init_meta()
data.set_peek()
data.set_size()
app.model.flush()
elif fields[0] == "#NewFile":
description = fields[1]
@@ -47,4 +48,5 @@ def exec_after_process(app, inp_data, out_data, param_dict, tool, stdout, stderr
newdata.dbkey = dbkey
newdata.set_meta()
newdata.set_peek()
new_data.set_size()
app.model.flush()