ztfy/utils/browser/configure.zcml
branchZTK-1.1
changeset 140 d5e916191cf4
parent 115 4ec3baf668c2
--- a/ztfy/utils/browser/configure.zcml	Mon Apr 02 09:08:09 2012 +0200
+++ b/ztfy/utils/browser/configure.zcml	Fri Apr 06 19:09:59 2012 +0200
@@ -1,5 +1,6 @@
 <configure
 	xmlns="http://namespaces.zope.org/zope"
+	xmlns:z3c="http://namespaces.zope.org/z3c"
 	i18n_domain="ztfy.i18n">
 
 	<!-- Encoding selection widget -->
@@ -12,4 +13,26 @@
 			permission="zope.Public" />
 	</class>
 
+	<!-- Color selection widget -->
+	<adapter
+		factory=".color.ColorFieldWidgetFactory" />
+
+	<class class=".color.ColorWidget">
+		<require
+			interface=".color.IColorWidget"
+			permission="zope.Public" />
+	</class>
+
+	<z3c:widgetTemplate
+		mode="input"
+		template="templates/color_input.pt"
+		widget=".color.ColorWidget"
+		layer="z3c.form.interfaces.IFormLayer" />
+
+	<z3c:widgetTemplate
+		mode="display"
+		template="templates/color_display.pt"
+		widget=".color.ColorWidget"
+		layer="z3c.form.interfaces.IFormLayer" />
+
 </configure>
\ No newline at end of file