[Zope3-checkins] CVS: Zope3/src/zope/app/browser/form - vocabularywidget.py:1.37

Fred L. Drake, Jr. fred@zope.com
Mon, 9 Jun 2003 14:25:41 -0400


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

Modified Files:
	vocabularywidget.py 
Log Message:
Push the addAction() calls to __init__().


=== Zope3/src/zope/app/browser/form/vocabularywidget.py 1.36 => 1.37 ===
--- Zope3/src/zope/app/browser/form/vocabularywidget.py:1.36	Fri Jun  6 17:35:17 2003
+++ Zope3/src/zope/app/browser/form/vocabularywidget.py	Mon Jun  9 14:25:40 2003
@@ -620,11 +620,14 @@
     _msg_results_header = message(_("vocabulary-query-header-results"),
                                  "Search results")
 
-    def setName(self, name):
-        VocabularyQueryViewBase.setName(self, name)
+    def __init__(self, *args, **kw):
+        super(IterableVocabularyQueryViewBase, self).__init__(*args, **kw)
         self.addAction(ADD_DONE, self._msg_add_done)
         self.addAction(ADD_MORE, self._msg_add_more)
         self.addAction(MORE,     self._msg_more)
+
+    def setName(self, name):
+        VocabularyQueryViewBase.setName(self, name)
         name = self.name
         self.query_index_name = name + ".start"
         self.query_selections_name = name + ".picks"