def convert_to_value(self, representation): from zeobuilder.expressions import Expression as E try: return E(TextViewMixin.convert_to_value(self, representation)) except SyntaxError: raise ValueError("There is a syntax error in the expression.")
def convert_to_value(self, representation): return TextViewMixin.convert_to_value(self, representation)