def validate(self, object, name, value): if value == None: self.dimension = None return "" else: try: if self.dimension == None: self.dimension = exact(1.0, value) self.dimension.rescale(value) return value except: self.error(object, name, value)
def validate(self, object, name, value): try: self.dimension = exact(1.0, value) return value except: self.error(object, name, value)