From: Tripp L. <tli...@pe...> - 2002-08-30 22:30:39
|
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! |