Le Mon 08 Jun, vers 14:41 +0200, Glauco exprimait :
> 
> Stephane Kanschine ha scritto:
> >
> > I try to offer my users an edit form on an ordinary object, but i
> > don't want them to modify some fields. These TextField are displayed
> > for information purpose, but disabled=True. From this point, it's just
> > impossible to validate the form (Missing Value even without any
> > validator). I read on old posts, that the browser doesn't send
> > disabled input data, so the error_handler cannot retrieve the data and
> > can't display them in case of error.
> 
> I've solved this problem with this simple Widget:
> 
> class TextLabel(widgets.TextField):

This is alike my workaround with more magic :-)

-- 
"Par trois méthodes, nous pouvons apprendre la sagesse : d'abord, par
la réflexion qui est la plus noble; en second lieu, par l'imitation,
qui est la plus facile; et la troisiéme, par l'experience, qui est la
plus amère." Confucius

--~--~---------~--~----~------------~-------~--~----~
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
-~----------~----~----~----~------~----~------~--~---

Reply via email to