Page Menu
Home
c4science
Search
Configure Global Search
Log In
Files
F69862730
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
Wed, Jul 3, 22:23
Size
618 B
Mime Type
text/x-python
Expires
Fri, Jul 5, 22:23 (2 d)
Engine
blob
Format
Raw Data
Handle
18763726
Attached To
R3127 blackdynamite
runconfig.py
View Options
#!/usr/bin/env python3
from
__future__
import
print_function
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