cwvreg.py
changeset 6069 d7cef08aad27
parent 6046 3fd4a34c4a09
child 6141 b8287e54b528
--- a/cwvreg.py	Wed Aug 04 11:16:39 2010 +0200
+++ b/cwvreg.py	Wed Aug 04 11:16:40 2010 +0200
@@ -713,7 +713,7 @@
         vocab = pdef['vocabulary']
         if vocab is not None:
             if callable(vocab):
-                vocab = vocab(key, None) # XXX need a req object
+                vocab = vocab(None) # XXX need a req object
             if not value in vocab:
                 raise ValueError(_('unauthorized value'))
         return value