(self)
| 79 | raise validation.ValidationError(len(input), six.text_type(e)) |
| 80 | |
| 81 | def read(self): |
| 82 | message = self.template.format(self.prefix + self.name, **self.spec) |
| 83 | response = prompt(message, **self.options) |
| 84 | |
| 85 | result = self.spec.get("default", None) |
| 86 | |
| 87 | if response: |
| 88 | result = self._transform_response(response) |
| 89 | |
| 90 | return result |
| 91 | |
| 92 | def _construct_description(self): |
| 93 | if "description" in self.spec: |