> Yes, I understand that part, and that is what my ReadOnlyTextField
> does: the template on it eliminates the 'input' and just displays
> the value.

Apologies for my frustrating reply then!


> What I want to know is, how do I prevent the 'name: None' pairs from
> ending up in the keyword set sent to my action controller method?

Part of the joy of widgets is that, on submission, the data types are
coerced before reaching the controller method. It would seem (to me)
likely that this piece of behaviour can (probably) not be selectively
dropped.  Turbogear widgets are marvellous but not quite perfect.

The Turbogears widgets framework will eventually be deprecated in
favour of a framework called ToscaWidgets that is currently being
developed.  ToscaWidgets might be able to do as you need or the
authors might add in useful features to help you.

As a work around you could have a for loop to transfer all 'not None'
form values to your data record.  Inelegant but probably sufficient.

((Hoping I have said something sufficiently, scandalously, daft so
that someone who REALLY understands will put us both straight!!))

A


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