Hi there!

I'm subclassing EasyCrudRestController and now I have an attribute 
self.event, that I don't want to be changed in the add and edit forms, but 
that needs to be present when writing the form to the database.
I thought about using a @before_validate hook to simply insert it into 
kwargs, but that doesn't work since @before_validate doesn't seem to get 
called (no logging).
Another alternative would be using a HiddenField, but then I would have to 
insert the value into the AddForm, which I don't know how to do.

Any help would be nice! ;)

Thanks and good night,
Moritz

-- 
You received this message because you are subscribed to the Google Groups 
"TurboGears" group.
To view this discussion on the web visit 
https://groups.google.com/d/msg/turbogears/-/qTqkd_d9t0gJ.
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.

Reply via email to