(self)
| 601 | self._option["disabled"] = None |
| 602 | |
| 603 | def _end_option(self): |
| 604 | debug("") |
| 605 | if self._option is None: |
| 606 | raise ParseError("end of OPTION before start") |
| 607 | |
| 608 | contents = self._option.get("contents", "").strip() |
| 609 | self._option["contents"] = contents |
| 610 | if "value" not in self._option: |
| 611 | self._option["value"] = contents |
| 612 | if "label" not in self._option: |
| 613 | self._option["label"] = contents |
| 614 | # stuff dict of SELECT HTML attrs into a special private key |
| 615 | # (gets deleted again later) |
| 616 | self._option["__select"] = self._select |
| 617 | self._append_select_control(self._option) |
| 618 | self._option = None |
| 619 | |
| 620 | def _append_select_control(self, attrs): |
| 621 | debug("%s", attrs) |
no test coverage detected