please move z3c.formwidget.query to github
Vincent Fretin <[email protected]>
| Newsgroups | gmane.comp.web.zope.devel |
|---|---|
| Message-ID | <CAD=kyd8sLOMuOPVCOnR0LyPpegj7EJtUvtP8Jkq+Regc0n4F9A@mail.gmail.com> |
Hi, Can someone please migrate z3c.formwidget.query to github? This package is a dependency of plone.formwidget.autocomplete and I need to make a fix. This is broken since z3c.form >= 2.6.0 which remove :list suffix from radiobox. See the attached patch. Vincent Fretin Ecreall http://www.ecreall.com _______________________________________________ Zope-Dev maillist - [email protected] https://mail.zope.org/mailman/listinfo/zope-dev ** No cross posts or HTML encoding! ** (Related lists - https://mail.zope.org/mailman/listinfo/zope-announce https://mail.zope.org/mailman/listinfo/zope )
z3c.formwidget.query_radio_novalue_fix.patch
(application/octet-stream, 1.5 KB)
Index: CHANGES.txt
===================================================================
--- CHANGES.txt (révision 130310)
+++ CHANGES.txt (copie de travail)
@@ -4,7 +4,9 @@
0.10 (unreleased)
-----------------
-- Nothing changed yet.
+- Remove :list from novalue radio box name to be the same behavior
+ as z3c.form >= 2.6.0.
+ [vincentfretin]
0.9 (2012-08-30)
Index: setup.py
===================================================================
--- setup.py (révision 130310)
+++ setup.py (copie de travail)
@@ -23,7 +23,7 @@
'z3c.form [test]'
]),
install_requires = ['setuptools',
- 'z3c.form',
+ 'z3c.form >= 2.6.0',
'zope.interface',
'zope.schema',
'zope.component',
Index: src/z3c/formwidget/query/widget.py
===================================================================
--- src/z3c/formwidget/query/widget.py (révision 130310)
+++ src/z3c/formwidget/query/widget.py (copie de travail)
@@ -186,7 +186,7 @@
if self._radio and not self.required:
self.items.insert(0, {
'id': self.id + '-novalue',
- 'name': self.name + ':list',
+ 'name': self.name,
'value': self.noValueToken,
'label': self.noValueLabel,
'checked': not self.value or self.value[0] == self.noValueToken,