Page Menu
Home
c4science
Search
Configure Global Search
Log In
Files
F90378720
runconfig.py
No One
Temporary
Actions
Download File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Award Token
Subscribers
None
File Metadata
Details
File Info
Storage
Attached
Created
Fri, Nov 1, 02:53
Size
625 B
Mime Type
text/x-python
Expires
Sun, Nov 3, 02:53 (2 d)
Engine
blob
Format
Raw Data
Handle
22057723
Attached To
R3127 blackdynamite
runconfig.py
View Options
#!/usr/bin/env python3
from
__future__
import
print_function
from
.
import
sqlobject
class
RunConfig
(
sqlobject
.
SQLObject
):
"""
"""
table_name
=
'runconfig'
def
attachToRun
(
self
,
run
):
self
[
"run_id"
]
=
run
.
id
def
addConfigFile
(
self
,
configfile
):
self
[
"configfile_id"
]
=
configfile
.
id
def
__init__
(
self
,
base
):
sqlobject
.
SQLObject
.
__init__
(
self
,
base
)
self
.
table_name
=
"runconfig"
self
.
foreign_keys
[
"run_id"
]
=
"runs"
self
.
foreign_keys
[
"configfile_id"
]
=
"configfiles"
self
.
types
[
"run_id"
]
=
int
self
.
types
[
"configfile_id"
]
=
int
Event Timeline
Log In to Comment