# -*- coding: utf-8 # Copyright 2005 by Vahur Rebas class PhaseBase: """ base class for phases. """ _phaseStatus = 0 def getPhaseStatus(self): """ return phase status """ return self._phaseStatus def getPhaseStatusIMG(self): if self.getPhaseStatus() == 0: return "ristike.gif" if self.getPhaseStatus() == 1: return "linnuke.gif" return "ristike.gif" def title_or_id(self): return self.getPhTitle()