Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
vidjil
vidjil
Commits
af119810
Commit
af119810
authored
Sep 11, 2014
by
Marc Duez
Browse files
server : autodelete file if the associated database row is removed
parent
edea84d3
Changes
1
Show whitespace changes
Inline
Side-by-side
server/web2py/applications/vidjil/models/db.py
View file @
af119810
...
...
@@ -104,7 +104,7 @@ db.define_table('sequence_file',
Field
(
'sequencer'
,
'text'
),
Field
(
'producer'
,
'text'
),
Field
(
'size_file'
,
'integer'
),
Field
(
'data_file'
,
'upload'
,
length
=
1000000000000
))
Field
(
'data_file'
,
'upload'
,
length
=
1000000000000
,
autodelete
=
True
))
...
...
@@ -128,21 +128,21 @@ db.define_table('data_file',
Field
(
'config_id'
,
'reference config'
),
Field
(
'run_date'
,
'date'
),
Field
(
'scheduler_task_id'
,
'integer'
),
Field
(
'data_file'
,
'upload'
,
length
=
1000000000000
))
Field
(
'data_file'
,
'upload'
,
length
=
1000000000000
,
autodelete
=
True
))
db
.
define_table
(
'fused_file'
,
Field
(
'patient_id'
,
'reference patient'
),
Field
(
'config_id'
,
'reference config'
),
Field
(
'fuse_date'
,
'date'
),
Field
(
'status'
,
'string'
),
Field
(
'fused_file'
,
'upload'
,
length
=
1000000000000
))
Field
(
'fused_file'
,
'upload'
,
length
=
1000000000000
,
autodelete
=
True
))
db
.
define_table
(
'analysis_file'
,
Field
(
'patient_id'
,
'reference patient'
),
Field
(
'config_id'
,
'reference config'
),
Field
(
'analyze_date'
,
'date'
),
Field
(
'status'
,
'string'
),
Field
(
'analysis_file'
,
'upload'
,
length
=
1000000000000
))
Field
(
'analysis_file'
,
'upload'
,
length
=
1000000000000
,
autodelete
=
True
))
if
db
(
db
.
auth_user
.
id
>
0
).
count
()
==
0
:
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment