fix vocabfunc signature #342646
authorAurelien Campeas <aurelien.campeas@logilab.fr>
Mon, 06 Apr 2009 14:27:52 +0200
changeset 1254 585f3c476a18
parent 1245 298269ba818f
child 1255 9d25fd39f9b5
fix vocabfunc signature #342646
cwvreg.py
--- a/cwvreg.py	Mon Apr 06 10:08:35 2009 +0200
+++ b/cwvreg.py	Mon Apr 06 14:27:52 2009 +0200
@@ -322,9 +322,9 @@
         if vocab is not None:
             if callable(vocab):
                 # list() just in case its a generator function
-                vocabfunc = lambda e: list(vocab(propkey, req))
+                vocabfunc = lambda **kwargs: list(vocab(propkey, req))
             else:
-                vocabfunc = lambda e: vocab
+                vocabfunc = lambda **kwargs: vocab
             w = StaticComboBoxWidget(self, 'EProperty', self.schema['value'], 'String',
                                      vocabfunc=vocabfunc, description=tr(pdef['help']),
                                      **attrs)