pull/7/head
Ferry Boender 5 years ago
parent 9fc0c6dab2
commit f647538d62
  1. 3
      src/formdefinition.py

@ -49,7 +49,8 @@ class FormDefinition(object):
elif self.fields_from is not None: elif self.fields_from is not None:
return runscript.from_file(self.fields_from) return runscript.from_file(self.fields_from)
else: else:
raise ValueError("Missing either 'fields' or 'fields_from' in '{}' form".format(self.name)) msg = "Missing either 'fields' or 'fields_from' in '{}' form"
raise ValueError(msg.format(self.name))
def validate_field_defs(self, fields): def validate_field_defs(self, fields):
""" """

Loading…
Cancel
Save