[Zope3-checkins]
SVN: Zope3/trunk/src/zope/app/form/browser/configure.zcml
Changed the widgets registration to use the adapter directive
instead of view.
Albertas Agejevas
alga at pov.lt
Tue Jan 23 13:47:01 EST 2007
Log message for revision 72195:
Changed the widgets registration to use the adapter directive instead of view.
Changed the provided interface to the more specific ISimpleWidget instead of
IInputWidget for the browser input widgets.
Changed:
U Zope3/trunk/src/zope/app/form/browser/configure.zcml
-=-
Modified: Zope3/trunk/src/zope/app/form/browser/configure.zcml
===================================================================
--- Zope3/trunk/src/zope/app/form/browser/configure.zcml 2007-01-23 18:29:02 UTC (rev 72194)
+++ Zope3/trunk/src/zope/app/form/browser/configure.zcml 2007-01-23 18:47:00 UTC (rev 72195)
@@ -28,9 +28,9 @@
<!-- Views for Widget Errors -->
- <view
- type="zope.publisher.interfaces.browser.IBrowserRequest"
- for="zope.app.form.interfaces.IWidgetInputError"
+ <adapter
+ for="zope.app.form.interfaces.IWidgetInputError
+ zope.publisher.interfaces.browser.IBrowserRequest"
provides="zope.app.form.browser.interfaces.IWidgetInputErrorView"
factory="zope.app.form.browser.exception.WidgetInputErrorView"
permission="zope.Public"
@@ -38,73 +38,73 @@
<!-- Core display widgets -->
- <view
- type="zope.publisher.interfaces.browser.IBrowserRequest"
- for="zope.schema.interfaces.IField"
+ <adapter
+ for="zope.schema.interfaces.IField
+ zope.publisher.interfaces.browser.IBrowserRequest"
provides="zope.app.form.interfaces.IDisplayWidget"
factory=".DisplayWidget"
permission="zope.Public"
/>
- <view
- type="zope.publisher.interfaces.browser.IBrowserRequest"
- for="zope.schema.interfaces.IBool"
+ <adapter
+ for="zope.schema.interfaces.IBool
+ zope.publisher.interfaces.browser.IBrowserRequest"
provides="zope.app.form.interfaces.IDisplayWidget"
factory=".boolwidgets.BooleanDisplayWidget"
permission="zope.Public"
/>
- <view
- type="zope.publisher.interfaces.browser.IBrowserRequest"
- for="zope.schema.interfaces.IBytes"
+ <adapter
+ for="zope.schema.interfaces.IBytes
+ zope.publisher.interfaces.browser.IBrowserRequest"
provides="zope.app.form.interfaces.IDisplayWidget"
factory=".textwidgets.BytesDisplayWidget"
permission="zope.Public"
/>
- <view
- type="zope.publisher.interfaces.browser.IBrowserRequest"
- for="zope.schema.interfaces.IBytesLine"
+ <adapter
+ for="zope.schema.interfaces.IBytesLine
+ zope.publisher.interfaces.browser.IBrowserRequest"
provides="zope.app.form.interfaces.IDisplayWidget"
factory=".DisplayWidget"
permission="zope.Public"
/>
- <view
- type="zope.publisher.interfaces.browser.IBrowserRequest"
- for="zope.schema.interfaces.IASCII"
+ <adapter
+ for="zope.schema.interfaces.IASCII
+ zope.publisher.interfaces.browser.IBrowserRequest"
provides="zope.app.form.interfaces.IDisplayWidget"
factory=".textwidgets.ASCIIDisplayWidget"
permission="zope.Public"
/>
- <view
- type="zope.publisher.interfaces.browser.IBrowserRequest"
- for="zope.schema.interfaces.IASCIILine"
+ <adapter
+ for="zope.schema.interfaces.IASCIILine
+ zope.publisher.interfaces.browser.IBrowserRequest"
provides="zope.app.form.interfaces.IDisplayWidget"
factory=".DisplayWidget"
permission="zope.Public"
/>
- <view
- type="zope.publisher.interfaces.browser.IBrowserRequest"
- for="zope.schema.interfaces.IURI"
+ <adapter
+ for="zope.schema.interfaces.IURI
+ zope.publisher.interfaces.browser.IBrowserRequest"
provides="zope.app.form.interfaces.IDisplayWidget"
factory=".textwidgets.URIDisplayWidget"
permission="zope.Public"
/>
- <view
- type="zope.publisher.interfaces.browser.IBrowserRequest"
- for="zope.schema.interfaces.IDate"
+ <adapter
+ for="zope.schema.interfaces.IDate
+ zope.publisher.interfaces.browser.IBrowserRequest"
provides="zope.app.form.interfaces.IDisplayWidget"
factory=".DateDisplayWidget"
permission="zope.Public"
/>
- <view
- type="zope.publisher.interfaces.browser.IBrowserRequest"
- for="zope.schema.interfaces.IDatetime"
+ <adapter
+ for="zope.schema.interfaces.IDatetime
+ zope.publisher.interfaces.browser.IBrowserRequest"
provides="zope.app.form.interfaces.IDisplayWidget"
factory=".DatetimeDisplayWidget"
permission="zope.Public"
@@ -112,138 +112,138 @@
<!-- Core edit widgets -->
- <view
- type="zope.publisher.interfaces.browser.IBrowserRequest"
- for="zope.schema.interfaces.ITextLine"
- provides="zope.app.form.interfaces.IInputWidget"
- factory=".TextWidget"
- permission="zope.Public"
- />
+ <adapter
+ for="zope.schema.interfaces.ITextLine
+ zope.publisher.interfaces.browser.IBrowserRequest"
+ provides="zope.app.form.browser.interfaces.ITextBrowserWidget"
+ factory=".TextWidget"
+ permission="zope.Public"
+ />
- <view
- type="zope.publisher.interfaces.browser.IBrowserRequest"
- for="zope.schema.interfaces.IText"
- provides="zope.app.form.interfaces.IInputWidget"
+ <adapter
+ for="zope.schema.interfaces.IText
+ zope.publisher.interfaces.browser.IBrowserRequest"
+ provides="zope.app.form.browser.interfaces.ISimpleInputWidget"
factory=".TextAreaWidget"
permission="zope.Public"
/>
- <view
- type="zope.publisher.interfaces.browser.IBrowserRequest"
- for="zope.schema.interfaces.ISourceText"
- provides="zope.app.form.interfaces.IInputWidget"
+ <adapter
+ for="zope.schema.interfaces.ISourceText
+ zope.publisher.interfaces.browser.IBrowserRequest"
+ provides="zope.app.form.browser.interfaces.ISimpleInputWidget"
factory=".TextAreaWidget"
permission="zope.Public"
/>
- <view
- type="zope.publisher.interfaces.browser.IBrowserRequest"
- for="zope.schema.interfaces.IBytesLine"
- provides="zope.app.form.interfaces.IInputWidget"
+ <adapter
+ for="zope.schema.interfaces.IBytesLine
+ zope.publisher.interfaces.browser.IBrowserRequest"
+ provides="zope.app.form.browser.interfaces.ISimpleInputWidget"
factory=".BytesWidget"
permission="zope.Public"
/>
- <view
- type="zope.publisher.interfaces.browser.IBrowserRequest"
- for="zope.schema.interfaces.IBytes"
- provides="zope.app.form.interfaces.IInputWidget"
+ <adapter
+ for="zope.schema.interfaces.IBytes
+ zope.publisher.interfaces.browser.IBrowserRequest"
+ provides="zope.app.form.browser.interfaces.ISimpleInputWidget"
factory=".FileWidget"
permission="zope.Public"
/>
- <view
- type="zope.publisher.interfaces.browser.IBrowserRequest"
- for="zope.schema.interfaces.IASCII"
- provides="zope.app.form.interfaces.IInputWidget"
+ <adapter
+ for="zope.schema.interfaces.IASCII
+ zope.publisher.interfaces.browser.IBrowserRequest"
+ provides="zope.app.form.browser.interfaces.ISimpleInputWidget"
factory=".ASCIIAreaWidget"
permission="zope.Public"
/>
- <view
- type="zope.publisher.interfaces.browser.IBrowserRequest"
- for="zope.schema.interfaces.IASCIILine"
- provides="zope.app.form.interfaces.IInputWidget"
+ <adapter
+ for="zope.schema.interfaces.IASCIILine
+ zope.publisher.interfaces.browser.IBrowserRequest"
+ provides="zope.app.form.browser.interfaces.ISimpleInputWidget"
factory=".ASCIIWidget"
permission="zope.Public"
/>
- <view
- type="zope.publisher.interfaces.browser.IBrowserRequest"
- for="zope.schema.interfaces.IInt"
- provides="zope.app.form.interfaces.IInputWidget"
+ <adapter
+ for="zope.schema.interfaces.IInt
+ zope.publisher.interfaces.browser.IBrowserRequest"
+ provides="zope.app.form.browser.interfaces.ISimpleInputWidget"
factory=".IntWidget"
permission="zope.Public"
/>
- <view
- type="zope.publisher.interfaces.browser.IBrowserRequest"
- for="zope.schema.interfaces.IInt"
+ <adapter
+ for="zope.schema.interfaces.IInt
+ zope.publisher.interfaces.browser.IBrowserRequest"
provides="zope.app.form.interfaces.IDisplayWidget"
factory=".UnicodeDisplayWidget"
permission="zope.Public"
/>
- <view
- type="zope.publisher.interfaces.browser.IBrowserRequest"
- for="zope.schema.interfaces.IFloat"
- provides="zope.app.form.interfaces.IInputWidget"
+ <adapter
+ for="zope.schema.interfaces.IFloat
+ zope.publisher.interfaces.browser.IBrowserRequest"
+ provides="zope.app.form.browser.interfaces.ISimpleInputWidget"
factory=".FloatWidget"
permission="zope.Public"
/>
- <view
- type="zope.publisher.interfaces.browser.IBrowserRequest"
- for="zope.schema.interfaces.IFloat"
+ <adapter
+ for="zope.schema.interfaces.IFloat
+ zope.publisher.interfaces.browser.IBrowserRequest"
provides="zope.app.form.interfaces.IDisplayWidget"
factory=".UnicodeDisplayWidget"
permission="zope.Public"
/>
- <view
- type="zope.publisher.interfaces.browser.IBrowserRequest"
- for="zope.schema.interfaces.IDecimal"
- provides="zope.app.form.interfaces.IInputWidget"
+ <adapter
+ for="zope.schema.interfaces.IDecimal
+ zope.publisher.interfaces.browser.IBrowserRequest"
+ provides="zope.app.form.browser.interfaces.ISimpleInputWidget"
factory=".DecimalWidget"
permission="zope.Public"
/>
- <view
- type="zope.publisher.interfaces.browser.IBrowserRequest"
- for="zope.schema.interfaces.IDecimal"
+ <adapter
+ for="zope.schema.interfaces.IDecimal
+ zope.publisher.interfaces.browser.IBrowserRequest"
provides="zope.app.form.interfaces.IDisplayWidget"
factory=".UnicodeDisplayWidget"
permission="zope.Public"
/>
- <view
- type="zope.publisher.interfaces.browser.IBrowserRequest"
- for="zope.schema.interfaces.IDatetime"
- provides="zope.app.form.interfaces.IInputWidget"
+ <adapter
+ for="zope.schema.interfaces.IDatetime
+ zope.publisher.interfaces.browser.IBrowserRequest"
+ provides="zope.app.form.browser.interfaces.ISimpleInputWidget"
factory=".DatetimeWidget"
permission="zope.Public"
/>
- <view
- type="zope.publisher.interfaces.browser.IBrowserRequest"
- for="zope.schema.interfaces.IDate"
- provides="zope.app.form.interfaces.IInputWidget"
+ <adapter
+ for="zope.schema.interfaces.IDate
+ zope.publisher.interfaces.browser.IBrowserRequest"
+ provides="zope.app.form.browser.interfaces.ISimpleInputWidget"
factory=".DateWidget"
permission="zope.Public"
/>
- <view
- type="zope.publisher.interfaces.browser.IBrowserRequest"
- for="zope.schema.interfaces.IBool"
- provides="zope.app.form.interfaces.IInputWidget"
+ <adapter
+ for="zope.schema.interfaces.IBool
+ zope.publisher.interfaces.browser.IBrowserRequest"
+ provides="zope.app.form.browser.interfaces.ISimpleInputWidget"
factory=".CheckBoxWidget"
permission="zope.Public"
/>
- <view
- type="zope.publisher.interfaces.browser.IBrowserRequest"
- for="zope.schema.interfaces.IPassword"
- provides="zope.app.form.interfaces.IInputWidget"
+ <adapter
+ for="zope.schema.interfaces.IPassword
+ zope.publisher.interfaces.browser.IBrowserRequest"
+ provides="zope.app.form.browser.interfaces.ISimpleInputWidget"
factory=".PasswordWidget"
permission="zope.Public"
/>
@@ -251,35 +251,35 @@
<!-- Items-related widgets; they are proxies for the multiviews below. -->
<!-- Choices (dispatch to field + vocabulary lookup) -->
- <view
- type="zope.publisher.interfaces.browser.IBrowserRequest"
- for="zope.schema.interfaces.IChoice"
+ <adapter
+ for="zope.schema.interfaces.IChoice
+ zope.publisher.interfaces.browser.IBrowserRequest"
provides="zope.app.form.interfaces.IDisplayWidget"
factory=".ChoiceDisplayWidget"
permission="zope.Public"
/>
- <view
- type="zope.publisher.interfaces.browser.IBrowserRequest"
- for="zope.schema.interfaces.IChoice"
- provides="zope.app.form.interfaces.IInputWidget"
+ <adapter
+ for="zope.schema.interfaces.IChoice
+ zope.publisher.interfaces.browser.IBrowserRequest"
+ provides="zope.app.form.browser.interfaces.ISimpleInputWidget"
factory=".ChoiceInputWidget"
permission="zope.Public"
/>
<!-- Generic collections (dispatch to field + value_type lookup) -->
- <view
- type="zope.publisher.interfaces.browser.IBrowserRequest"
- for="zope.schema.interfaces.ICollection"
+ <adapter
+ for="zope.schema.interfaces.ICollection
+ zope.publisher.interfaces.browser.IBrowserRequest"
provides="zope.app.form.interfaces.IDisplayWidget"
factory=".CollectionDisplayWidget"
permission="zope.Public"
/>
- <view
- type="zope.publisher.interfaces.browser.IBrowserRequest"
- for="zope.schema.interfaces.ICollection"
- provides="zope.app.form.interfaces.IInputWidget"
+ <adapter
+ for="zope.schema.interfaces.ICollection
+ zope.publisher.interfaces.browser.IBrowserRequest"
+ provides="zope.app.form.browser.interfaces.ISimpleInputWidget"
factory=".CollectionInputWidget"
permission="zope.Public"
/>
@@ -291,17 +291,17 @@
more specific than IInputWidget.
-->
- <view
- type="zope.publisher.interfaces.browser.IBrowserRequest"
- for="zope.schema.interfaces.ISequence"
+ <adapter
+ for="zope.schema.interfaces.ISequence
+ zope.publisher.interfaces.browser.IBrowserRequest"
provides="zope.app.form.interfaces.IDisplayWidget"
factory=".CollectionDisplayWidget"
permission="zope.Public"
/>
- <view
- type="zope.publisher.interfaces.browser.IBrowserRequest"
- for="zope.schema.interfaces.ISequence"
- provides="zope.app.form.interfaces.IInputWidget"
+ <adapter
+ for="zope.schema.interfaces.ISequence
+ zope.publisher.interfaces.browser.IBrowserRequest"
+ provides="zope.app.form.browser.interfaces.ISimpleInputWidget"
factory=".CollectionInputWidget"
permission="zope.Public"
/>
@@ -311,28 +311,28 @@
<!-- non-choice collection fields should register for the field + value type
so as to allow specific field + value_type widgets such as the Choice
pattern -->
- <view
- type="zope.publisher.interfaces.browser.IBrowserRequest"
+ <adapter
for="zope.schema.interfaces.ITuple
- zope.schema.interfaces.IField"
- provides="zope.app.form.interfaces.IInputWidget"
+ zope.schema.interfaces.IField
+ zope.publisher.interfaces.browser.IBrowserRequest"
+ provides="zope.app.form.browser.interfaces.ISimpleInputWidget"
factory=".TupleSequenceWidget"
permission="zope.Public"
/>
- <view
- type="zope.publisher.interfaces.browser.IBrowserRequest"
+ <adapter
for="zope.schema.interfaces.IList
- zope.schema.interfaces.IField"
- provides="zope.app.form.interfaces.IInputWidget"
+ zope.schema.interfaces.IField
+ zope.publisher.interfaces.browser.IBrowserRequest"
+ provides="zope.app.form.browser.interfaces.ISimpleInputWidget"
factory=".ListSequenceWidget"
permission="zope.Public"
/>
- <view
- type="zope.publisher.interfaces.browser.IBrowserRequest"
+ <adapter
for="zope.schema.interfaces.ISequence
- zope.schema.interfaces.IField"
+ zope.schema.interfaces.IField
+ zope.publisher.interfaces.browser.IBrowserRequest"
provides="zope.app.form.interfaces.IDisplayWidget"
factory=".SequenceDisplayWidget"
permission="zope.Public"
@@ -346,107 +346,107 @@
So all new collection types should always register for IChoice if
they want to follow in this configuration pattern. -->
<!-- List + Choice -->
- <view
- type="zope.publisher.interfaces.browser.IBrowserRequest"
+ <adapter
for="zope.schema.interfaces.IList
- zope.schema.interfaces.IChoice"
+ zope.schema.interfaces.IChoice
+ zope.publisher.interfaces.browser.IBrowserRequest"
provides="zope.app.form.interfaces.IDisplayWidget"
factory=".ChoiceCollectionDisplayWidget"
permission="zope.Public"
/>
- <view
- type="zope.publisher.interfaces.browser.IBrowserRequest"
+ <adapter
for="zope.schema.interfaces.IList
- zope.schema.interfaces.IChoice"
- provides="zope.app.form.interfaces.IInputWidget"
+ zope.schema.interfaces.IChoice
+ zope.publisher.interfaces.browser.IBrowserRequest"
+ provides="zope.app.form.browser.interfaces.ISimpleInputWidget"
factory=".ChoiceCollectionInputWidget"
permission="zope.Public"
/>
<!-- Tuple + Choice -->
- <view
- type="zope.publisher.interfaces.browser.IBrowserRequest"
+ <adapter
for="zope.schema.interfaces.ITuple
- zope.schema.interfaces.IChoice"
+ zope.schema.interfaces.IChoice
+ zope.publisher.interfaces.browser.IBrowserRequest"
provides="zope.app.form.interfaces.IDisplayWidget"
factory=".ChoiceCollectionDisplayWidget"
permission="zope.Public"
/>
- <view
- type="zope.publisher.interfaces.browser.IBrowserRequest"
+ <adapter
for="zope.schema.interfaces.ITuple
- zope.schema.interfaces.IChoice"
- provides="zope.app.form.interfaces.IInputWidget"
+ zope.schema.interfaces.IChoice
+ zope.publisher.interfaces.browser.IBrowserRequest"
+ provides="zope.app.form.browser.interfaces.ISimpleInputWidget"
factory=".ChoiceCollectionInputWidget"
permission="zope.Public"
/>
<!-- Set + Choice -->
- <view
- type="zope.publisher.interfaces.browser.IBrowserRequest"
+ <adapter
for="zope.schema.interfaces.ISet
- zope.schema.interfaces.IChoice"
+ zope.schema.interfaces.IChoice
+ zope.publisher.interfaces.browser.IBrowserRequest"
provides="zope.app.form.interfaces.IDisplayWidget"
factory=".ChoiceCollectionDisplayWidget"
permission="zope.Public"
/>
- <view
- type="zope.publisher.interfaces.browser.IBrowserRequest"
+ <adapter
for="zope.schema.interfaces.ISet
- zope.schema.interfaces.IChoice"
- provides="zope.app.form.interfaces.IInputWidget"
+ zope.schema.interfaces.IChoice
+ zope.publisher.interfaces.browser.IBrowserRequest"
+ provides="zope.app.form.browser.interfaces.ISimpleInputWidget"
factory=".ChoiceCollectionInputWidget"
permission="zope.Public"
/>
<!-- Default Multi-Views for fields and vocabularies -->
- <view
- type="zope.publisher.interfaces.browser.IBrowserRequest"
+ <adapter
for="zope.schema.interfaces.IChoice
- zope.schema.interfaces.IBaseVocabulary"
+ zope.schema.interfaces.IBaseVocabulary
+ zope.publisher.interfaces.browser.IBrowserRequest"
provides="zope.app.form.interfaces.IDisplayWidget"
factory=".ItemDisplayWidget"
permission="zope.Public"
/>
- <view
- type="zope.publisher.interfaces.browser.IBrowserRequest"
+ <adapter
for="zope.schema.interfaces.IChoice
- zope.schema.interfaces.IVocabularyTokenized"
- provides="zope.app.form.interfaces.IInputWidget"
+ zope.schema.interfaces.IVocabularyTokenized
+ zope.publisher.interfaces.browser.IBrowserRequest"
+ provides="zope.app.form.browser.interfaces.ISimpleInputWidget"
factory=".DropdownWidget"
permission="zope.Public"
/>
<!-- Default Multi-Views for fields and iterable sources -->
- <view
- type="zope.publisher.interfaces.browser.IBrowserRequest"
+ <adapter
for="zope.schema.interfaces.ISet
- zope.schema.interfaces.IIterableSource"
- provides="zope.app.form.interfaces.IInputWidget"
+ zope.schema.interfaces.IIterableSource
+ zope.publisher.interfaces.browser.IBrowserRequest"
+ provides="zope.app.form.browser.interfaces.ISimpleInputWidget"
factory=".source.SourceMultiSelectSetWidget"
permission="zope.Public"
/>
- <view
- type="zope.publisher.interfaces.browser.IBrowserRequest"
+ <adapter
for="zope.schema.interfaces.IChoice
- zope.schema.interfaces.IIterableSource"
- provides="zope.app.form.interfaces.IInputWidget"
+ zope.schema.interfaces.IIterableSource
+ zope.publisher.interfaces.browser.IBrowserRequest"
+ provides="zope.app.form.browser.interfaces.ISimpleInputWidget"
factory=".source.SourceDropdownWidget"
permission="zope.Public"
/>
- <view
- type="zope.publisher.interfaces.browser.IBrowserRequest"
+ <adapter
for="zope.schema.interfaces.IList
- zope.schema.interfaces.IIterableSource"
- provides="zope.app.form.interfaces.IInputWidget"
+ zope.schema.interfaces.IIterableSource
+ zope.publisher.interfaces.browser.IBrowserRequest"
+ provides="zope.app.form.browser.interfaces.ISimpleInputWidget"
factory=".source.SourceOrderedMultiSelectWidget"
permission="zope.Public"
/>
@@ -454,64 +454,64 @@
<!-- These widgets are minimal and only support lists with unique members,
without ordering capabilities -->
- <view
- type="zope.publisher.interfaces.browser.IBrowserRequest"
+ <adapter
for="zope.schema.interfaces.ISet
- zope.schema.interfaces.IVocabularyTokenized"
- provides="zope.app.form.interfaces.IInputWidget"
+ zope.schema.interfaces.IVocabularyTokenized
+ zope.publisher.interfaces.browser.IBrowserRequest"
+ provides="zope.app.form.browser.interfaces.ISimpleInputWidget"
factory=".MultiSelectSetWidget"
permission="zope.Public"
/>
- <view
- type="zope.publisher.interfaces.browser.IBrowserRequest"
+ <adapter
for="zope.schema.interfaces.ISet
- zope.schema.interfaces.IBaseVocabulary"
+ zope.schema.interfaces.IBaseVocabulary
+ zope.publisher.interfaces.browser.IBrowserRequest"
provides="zope.app.form.interfaces.IDisplayWidget"
factory=".SetDisplayWidget"
permission="zope.Public"
/>
- <view
- type="zope.publisher.interfaces.browser.IBrowserRequest"
+ <adapter
for="zope.schema.interfaces.IList
- zope.schema.interfaces.IVocabularyTokenized"
- provides="zope.app.form.interfaces.IInputWidget"
+ zope.schema.interfaces.IVocabularyTokenized
+ zope.publisher.interfaces.browser.IBrowserRequest"
+ provides="zope.app.form.browser.interfaces.ISimpleInputWidget"
factory=".OrderedMultiSelectWidget"
permission="zope.Public"
/>
- <view
- type="zope.publisher.interfaces.browser.IBrowserRequest"
+ <adapter
for="zope.schema.interfaces.IList
- zope.schema.interfaces.IBaseVocabulary"
+ zope.schema.interfaces.IBaseVocabulary
+ zope.publisher.interfaces.browser.IBrowserRequest"
provides="zope.app.form.interfaces.IDisplayWidget"
factory=".SetDisplayWidget"
permission="zope.Public"
/>
<!-- Source Views -->
- <view
- type="zope.publisher.interfaces.browser.IBrowserRequest"
+ <adapter
for="zope.schema.interfaces.IChoice
- zope.schema.interfaces.ISource"
+ zope.schema.interfaces.ISource
+ zope.publisher.interfaces.browser.IBrowserRequest"
provides="zope.app.form.interfaces.IDisplayWidget"
factory=".source.SourceDisplayWidget"
permission="zope.Public"
/>
- <view
- type="zope.publisher.interfaces.browser.IBrowserRequest"
+ <adapter
for="zope.schema.interfaces.IChoice
- zope.schema.interfaces.ISource"
- provides="zope.app.form.interfaces.IInputWidget"
+ zope.schema.interfaces.ISource
+ zope.publisher.interfaces.browser.IBrowserRequest"
+ provides="zope.app.form.browser.interfaces.ISimpleInputWidget"
factory=".source.SourceInputWidget"
permission="zope.Public"
/>
- <view
- type="zope.publisher.interfaces.browser.IBrowserRequest"
+ <adapter
for="zope.schema.interfaces.ISequence
- zope.schema.interfaces.ISource"
+ zope.schema.interfaces.ISource
+ zope.publisher.interfaces.browser.IBrowserRequest"
provides="zope.app.form.interfaces.IDisplayWidget"
factory=".source.SourceSequenceDisplayWidget"
permission="zope.Public"
@@ -519,11 +519,11 @@
<!-- TODO We need a widget for tuples (and sets, for that matter). -->
- <view
- type="zope.publisher.interfaces.browser.IBrowserRequest"
+ <adapter
for="zope.schema.interfaces.IList
- zope.schema.interfaces.ISource"
- provides="zope.app.form.interfaces.IInputWidget"
+ zope.schema.interfaces.ISource
+ zope.publisher.interfaces.browser.IBrowserRequest"
+ provides="zope.app.form.browser.interfaces.ISimpleInputWidget"
factory=".source.SourceListInputWidget"
permission="zope.Public"
/>
More information about the Zope3-Checkins
mailing list