(self, value)
return conv
Translate scheduled downtime
Translate scheduled downtime
Translate scheduled downtime
def _trans_dtime(self, value):
        """ Translate scheduled downtime """
        try:
            conv = int(value)
        except ValueError:
            return 0

        if conv < 1:
            return 0

        return conv
def _trans_dtime ( self , value ) : try : conv = int ( value ) except ValueError : return 0 if conv < 1 : return 0 return conv