|
|
@ -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): |
|
|
|
""" |
|
|
|
""" |
|
|
|