fix : vocabulary method in StaticVocabularyConstraint class (yams.constraint.py) takes only keyword arguments
authorStephanie Marcu <stephanie.marcu@logilab.fr>
Fri, 03 Apr 2009 11:04:27 +0200
changeset 1227 e8b7c7407edf
parent 1226 9af39c01a622
child 1233 9f2760f15000
fix : vocabulary method in StaticVocabularyConstraint class (yams.constraint.py) takes only keyword arguments
web/widgets.py
--- a/web/widgets.py	Thu Apr 02 11:57:33 2009 -0700
+++ b/web/widgets.py	Fri Apr 03 11:04:27 2009 +0200
@@ -589,7 +589,7 @@
         self.vocabfunc = vocabfunc
 
     def vocabulary(self, entity):
-        choices = self.vocabfunc(entity)
+        choices = self.vocabfunc(entity=entity)
         if self.sort:
             choices = sorted(choices)
         if self.rschema.rproperty(self.subjtype, self.objtype, 'internationalizable'):