In my kid-file I first had:
#####
authorGroup = Group.by_group_name('authors')
userList = [(entry.id, entry.display_name) for entry in
authorGroup.users]
author = widgets.SingleSelectField(name = 'author',
options = userList,
validator = validators.NotEmpty)
#####
But in this way the author field was always NULL.
I changed it to:
#####
authorGroup = Group.by_group_name('authors')
userList = [(entry.id, entry.display_name) for entry in
authorGroup.users]
author = widgets.SingleSelectField(name = 'author',
options = userList)
#####
And now the author is filled with the right value.
Why does validator not work?
--
Cecil Westerhof
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups
"TurboGears" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at
http://groups.google.com/group/turbogears?hl=en
-~----------~----~----~----~------~----~------~--~---