merge
authorAurelien Campeas <aurelien.campeas@logilab.fr>
Mon, 06 Apr 2009 14:52:34 +0200
changeset 1255 9d25fd39f9b5
parent 1254 585f3c476a18 (diff)
parent 1248 4a8c5f8ddff5 (current diff)
child 1256 f7b875c62039
merge
--- a/cwvreg.py	Mon Apr 06 14:43:43 2009 +0200
+++ b/cwvreg.py	Mon Apr 06 14:52:34 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)