[Zope-Checkins] CVS: Zope/lib/python/Products/PluginIndexes/TextIndex - Vocabulary.py:1.6

Andreas Jung andreas@zope.com
Tue, 2 Oct 2001 13:02:50 -0400


Update of /cvs-repository/Zope/lib/python/Products/PluginIndexes/TextIndex
In directory cvs.zope.org:/tmp/cvs-serv13887

Modified Files:
	Vocabulary.py 
Log Message:
adding a vocabulary object did not refresh the menu properly


=== Zope/lib/python/Products/PluginIndexes/TextIndex/Vocabulary.py 1.5 => 1.6 ===
     self._setObject(id, c)
     if REQUEST is not None:
-        return self.manage_main(self,REQUEST)
+        return self.manage_main(self,REQUEST,update_menu=1)
 
 
 class Vocabulary(Item, Persistent, Implicit,
@@ -193,5 +193,7 @@
         self.lexicon.set(word)
 
     def words(self):
+        """xxx"""
+        print len(self.lexicon._lexicon.items())
         return self.lexicon._lexicon.items()