src/ztfy/utils/browser/configure.zcml
branchZTK-1.1
changeset 202 00845ce1f3b4
parent 190 5152d59c147c
child 250 16a535e0eb92
equal deleted inserted replaced
201:783dcf82b3dc 202:00845ce1f3b4
    35 		<require
    35 		<require
    36 			interface=".encoding.IEncodingSelectWidget"
    36 			interface=".encoding.IEncodingSelectWidget"
    37 			permission="zope.Public" />
    37 			permission="zope.Public" />
    38 	</class>
    38 	</class>
    39 
    39 
    40 	<!-- Color selection widget -->
       
    41 	<adapter factory=".color.ColorFieldWidgetFactory" />
       
    42 
       
    43 	<class class=".color.ColorWidget">
       
    44 		<require
       
    45 			interface=".color.IColorWidget"
       
    46 			permission="zope.Public" />
       
    47 	</class>
       
    48 
       
    49 	<z3c:widgetTemplate
       
    50 		mode="input"
       
    51 		template="templates/color_input.pt"
       
    52 		widget=".color.IColorWidget"
       
    53 		layer="ztfy.skin.layer.IZTFYBrowserLayer" />
       
    54 
       
    55 	<z3c:widgetTemplate
       
    56 		mode="display"
       
    57 		template="templates/color_display.pt"
       
    58 		widget=".color.IColorWidget"
       
    59 		layer="ztfy.skin.layer.IZTFYBrowserLayer" />
       
    60 
       
    61 	<!-- Dates range widget -->
       
    62 	<adapter factory=".daterange.DatesRangeDataConverter" />
       
    63 
       
    64 	<adapter factory=".daterange.DatesRangeFieldWidgetFactory" />
       
    65 
       
    66 	<class class=".daterange.DatesRangeWidget">
       
    67 		<require
       
    68 			interface=".daterange.IDatesRangeWidget"
       
    69 			permission="zope.Public" />
       
    70 	</class>
       
    71 
       
    72 	<z3c:widgetTemplate
       
    73 		mode="input"
       
    74 		template="templates/daterange_input.pt"
       
    75 		widget=".daterange.IDatesRangeWidget"
       
    76 		layer="ztfy.skin.layer.IZTFYBrowserLayer" />
       
    77 
       
    78 	<z3c:widgetTemplate
       
    79 		mode="display"
       
    80 		template="templates/daterange_display.pt"
       
    81 		widget=".daterange.IDatesRangeWidget"
       
    82 		layer="ztfy.skin.layer.IZTFYBrowserLayer" />
       
    83 
       
    84 	<!-- TextLine list widget -->
       
    85 	<adapter factory=".textlinelist.TextLineListDataConverter" />
       
    86 
       
    87 	<adapter factory=".textlinelist.TextLineListFieldWidgetFactory" />
       
    88 
       
    89 	<class class=".textlinelist.TextLineListWidget">
       
    90 		<require
       
    91 			interface=".textlinelist.ITextLineListWidget"
       
    92 			permission="zope.Public" />
       
    93 	</class>
       
    94 
       
    95 	<z3c:widgetTemplate
       
    96 		mode="input"
       
    97 		template="templates/textlinelist_input.pt"
       
    98 		widget=".textlinelist.ITextLineListWidget"
       
    99 		layer="ztfy.skin.layer.IZTFYBrowserLayer" />
       
   100 
       
   101 	<z3c:widgetTemplate
       
   102 		mode="display"
       
   103 		template="templates/textlinelist_display.pt"
       
   104 		widget=".textlinelist.ITextLineListWidget"
       
   105 		layer="ztfy.skin.layer.IZTFYBrowserLayer" />
       
   106 
       
   107 </configure>
    40 </configure>