def eetext(s): return col('{autored}%s{/autored}' % s)
def oktext(s): return col('{autoblue}%s{/autoblue}' % s)
def wwtext(s): return col('{autoyellow}%s{/autoyellow}' % s)
from optparse import OptionParser #global variables global gvalarm global ccgalarm global gvlist global ccglist global igvlist global iccglist global flowlist global iflowlist global flowalarm global pending_update global tobj tobj = tempdev.EPSTemperature() ok_str = col('{autoblue}OK{/autoblue}') ee_str = col('{autored}EE{/autored}') ww_str = col('{autoyellow}WW{/autoyellow}') def oktext(s): return col('{autoblue}%s{/autoblue}' % s) def wwtext(s): return col('{autoyellow}%s{/autoyellow}' % s) def eetext(s): return col('{autored}%s{/autored}' % s)