There is a much simpler solution. What I want is that the author of an entry
is the current user. There is no need to give the id in a hidden field.
(There is then the possibility that there will be tempered with.) In the
page that is used to save the entry, I use:
kw['authorID'] = identity.current.user.id
kw['date'] = datetime.datetime.now()
BlogEntry(**kw)
Not that the effort was for nothing. Next time I now more about forms when I
need them. ;-}
--
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
-~----------~----~----~----~------~----~------~--~---