def set_value(self, s): if s and (s[0] != "<"): try: s = editobj2.eval(s) except: pass # sys.excepthook(*sys.exc_info()) Field.set_value(self, s)
def set_value(self, s): try: s = int(editobj2.eval(s)) except: return Field.set_value(self, s)