Page MenuHomec4science

runconfig.py
No OneTemporary

File Metadata

Created
Mon, Sep 9, 01:34

runconfig.py

#!/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