(self)
| 128 | ) |
| 129 | |
| 130 | def _construct_template(self): |
| 131 | self.template = "{0} (boolean)" |
| 132 | |
| 133 | if "default" in self.spec: |
| 134 | self.template += " [{}]: ".format(self.spec.get("default") and "y" or "n") |
| 135 | else: |
| 136 | self.template += ": " |
| 137 | |
| 138 | def _transform_response(self, response): |
| 139 | if response.lower() in POSITIVE_BOOLEAN: |