Page Menu
Home
c4science
Search
Configure Global Search
Log In
Files
F82001655
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
Mon, Sep 9, 01:34
Size
594 B
Mime Type
text/x-python
Expires
Wed, Sep 11, 01:34 (2 d)
Engine
blob
Format
Raw Data
Handle
20640609
Attached To
R3127 blackdynamite
runconfig.py
View Options
#!/usr/bin/env python
from
__future__
import
print_function
import
job
import
sqlobject
class
RunConfig
(
sqlobject
.
SQLObject
):
"""
"""
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