# HG changeset patch # User Stephanie Marcu # Date 1238749467 -7200 # Node ID e8b7c7407edfc0e16f6056879d8753f71cf2416d # Parent 9af39c01a622e9f8149404f8edcb216b5e80bd3e fix : vocabulary method in StaticVocabularyConstraint class (yams.constraint.py) takes only keyword arguments diff -r 9af39c01a622 -r e8b7c7407edf 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'):