cwvreg.py
changeset 1254 585f3c476a18
parent 1123 a8e2838f174a
child 1263 01152fffd593
child 1381 6042f1b342bb
--- 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)