• Main Page
  • Namespaces
  • Classes
  • Files
  • File List

/home/mark/model/software/ScrumPy/ScrumPy/Bioinf/PyoCyc/Transunit.py

00001 
00002 import Base, Tags
00003 
00004 DefaultFile="transunits.dat"
00005 
00006 # Every record will a regulator (ie the agent that acts to regulate something)
00007 # A regulated entity acted upon by the regulator
00008 # And a mode indicating + or - regulation
00009 
00010 
00011 class Record(Base.Record):
00012 
00013     ChildFields=[Tags.Comps]
00014     ParentFields=[Tags.CompOf, Tags.RegBy]
00015     
00016 
00017     RecordClass = "Transunit"
00018 
00019     def Finished(self):
00020         for f in Record.ChildFields + Record.ParentFields:
00021             if not self.Attributes.has_key(f):
00022                 self.Attributes[f] = [Tags.NR] 
00023                 
00024 
00025 
00026 class DB(Base.DB):
00027     def __init__(self,path=Base.DefaultPath, file=DefaultFile, RecClass=Record, **kwargs):
00028         Base.DB.__init__(self,
00029                          path=path,
00030                          file=DefaultFile,
00031                          RecClass=Record,
00032                          **kwargs)
00033 

Generated on Tue Sep 4 2012 15:38:01 for ScrumPy by  doxygen 1.7.1