[Checkins] [zopefoundation/z3c.form] 4d0e62: Avoid duplicate IDs when using `QuerySourceRadioWi...

GitHub noreply at github.com
Tue Sep 19 08:22:24 CEST 2017


  Branch: refs/heads/master
  Home:   https://github.com/zopefoundation/z3c.form
  Commit: 4d0e62feaa312ce2cd014cb318f4eed134ffacca
      https://github.com/zopefoundation/z3c.form/commit/4d0e62feaa312ce2cd014cb318f4eed134ffacca
  Author: Paul Grunewald <paul.grunewald at gmail.com>
  Date:   2017-09-19 (Tue, 19 Sep 2017)

  Changed paths:
    M CHANGES.txt
    M src/z3c/form/browser/radio.py
    M src/z3c/form/browser/radio.txt

  Log Message:
  -----------
  Avoid duplicate IDs when using `QuerySourceRadioWidget` for non-required fields. (#62)

Avoid duplicate IDs when using `QuerySourceRadioWidget` for non-required fields.

The `items` method in `z3c.formwidget.query.widget.QuerySourceRadioWidget` creates for the empty value an input element with `-novalue` as ID-suffix. The base class RadioWidget generates in the method `renderForValue` two input elements with `-0` as ID-suffix - both for the special `--NOVALUE--` item and the regular first item. Keep using the `-novalue` variant in the first case.




More information about the checkins mailing list