On Fri, Mar 10, 2006 at 10:05:17AM +0100, Christian Boos wrote:
> I'd like to have at least the progress bar in the core Trac (see ticket 
> #1084),
> in order to match FlySpray's percent complete functionality. See:
> http://flyspray.rocks.cc/bts/ for how it looks in the overview, and e.g.
> http://flyspray.rocks.cc/bts/task/612 for how it looks in the ticket view.

Agreed, progress bars are nice to have.

> Can't field.render_view(req, hdf) and field.render_control(req,hdf) be
> "agnostic" w.r.t. the way they generate the HTML, i.e. simply be
> field.render_view(req) and field.render_control(req).
> If a field implementation wants to use ClearSilver, it's "its" problem...

Yeah, I agree. The current implementation is:

    def render(self, env, req, db=None):
    def render_value(self, env, req):
    def render_control(self, env, req):

render_value() is for generating a HTML representation of the field
"value", render_control() is what you think it is, and render() is
a convenience wrapper which calls the other two along with some extra
munging, as well as rendering the label with wiki_to_oneliner. The three
rendered fields end up in field.html.{value,control,label}.

Seems to be coming along quite well at the moment.

-- 
Evolution: Taking care of those too stupid to take care of themselves.
_______________________________________________
Trac-dev mailing list
[email protected]
http://lists.edgewall.com/mailman/listinfo/trac-dev

Reply via email to