[Zope3-checkins] CVS: Zope3/src/zope/app/interfaces/browser - form.py:1.8.2.1

Fred L. Drake, Jr. fred@zope.com
Fri, 16 May 2003 12:05:14 -0400


Update of /cvs-repository/Zope3/src/zope/app/interfaces/browser
In directory cvs.zope.org:/tmp/cvs-serv1458/interfaces/browser

Modified Files:
      Tag: schema-vocabulary-branch
	form.py 
Log Message:
New interface for vocabulary query views.

=== Zope3/src/zope/app/interfaces/browser/form.py 1.8 => 1.8.2.1 ===
--- Zope3/src/zope/app/interfaces/browser/form.py:1.8	Thu May  1 15:35:21 2003
+++ Zope3/src/zope/app/interfaces/browser/form.py	Fri May 16 12:05:14 2003
@@ -155,3 +155,27 @@
     def update():
         """Update the form with data from the request.
         """
+
+
+class IVocabularyQueryView(Interface):
+    """View support for IVocabularyQuery objects.
+
+    Implementations of this interface are used by vocabulary field
+    edit widgets to support query and result presentations.
+    """
+
+    def setPrefix(prefix):
+        """Set the prefix used for names of input elements
+
+        Element names should begin with the given prefix,
+        followed by a dot.
+        """
+
+    def renderInput():
+        """Return a rendering of the input portion of the widget."""
+
+    def renderResults(value):
+        """Return a rendering of the results portion of the widget.
+
+        'value' is the current value represented by the widget.
+        """