I'm trying to use a RadioField, but I'm composing the HTML for the field
by hand in a Cheetah template. How can I get the "selected" attribute for
a particular value to determine whether or not to write the "checked"
attribute?

I've been reading the sources, and I'm currently blocked by these things:

        class SelectField (Field):
                ...
                def selected (self, key, default)
                        ...

1) What is "default" here?

2) How can I (elegantly) get down to this method from a RenderableField?
RF seems to have wrappers around its self._field attributes and methods
for most common field bits, but not for "selected" :)

Thanks!





-------------------------------------------------------
This sf.net email is sponsored by: OSDN - Tired of that same old
cell phone?  Get a new here for FREE!
https://www.inphonic.com/r.asp?r=sourceforge1&refcode1=vs3390
_______________________________________________
Webware-discuss mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/webware-discuss

Reply via email to