[Zope3-Users] z3c.form: small patch

Toni Mueller support-z3u at oeko.net
Thu Oct 21 09:47:16 EDT 2010



Hello,

since the zope3-dev list appears to be dead, and since I have no better
idea about where to put this, I send you a small patch for z3c.form
version 2.4.1.

Background: https://bugs.launchpad.net/singing-dancing/+bug/620608

Users of Singing&Dancing in Plone need to detect whether z3c.form has
certain features. The patch adds a feature declaration to z3c.form.


--- configure.zcml.orig	2010-10-21 15:24:05.000000000 +0200
+++ configure.zcml	2010-10-21 15:40:58.000000000 +0200
@@ -1,6 +1,7 @@
 <configure
     xmlns="http://namespaces.zope.org/zope"
     xmlns:i18n="http://namespaces.zope.org/i18n"
+    xmlns:meta="http://namespaces.zope.org/meta"
     i18n_domain="z3c.form">
 
   <!-- default z3c.form layer -->
@@ -9,6 +10,8 @@
       type="zope.publisher.interfaces.browser.IBrowserSkinType"
       />
 
+  <meta:provides feature="z3c.form.checkbox-widget" />
+  <meta:provides feature="z3c.form.radio-widget" />
 
   <!-- Validators -->
   <adapter


It would be great if this patch could make it into the next version of
z3c.form, or into a small patch release.


Kind regards,
--Toni++


More information about the Zope3-users mailing list