Noah Kantrowitz wrote:
> This has been previously discussed on the list, though I stopped reading
> for a week or two due to final exams. Basically we need to add
> infrastructure to the navigation system to manage the ctxtnav bar in a
> thematically similar fashion to the other nav bars. The reason this
> needs to be done before a beta is this will break every template
> currently in existence. The proposed API is something of the form
> add_ctxtnav(req, tag.a('Foo', href=req.href.myplugin('foo'))), working
> internally in a similar fashion to add_stylesheet and add_script. This
> will also mean moving the ctxtnav div out of the individual templates
> and into layout.html (hence the mass breakage).
>
I agree that there are improvements to be made here, but I don't think
it's something we can realistically do for 0.11 at this point, as this
would involve a lot of work (seeing the relative complexity of all the
existing ctxnav <div>s), not the mention the "mass breakage" thing. If
0.11 plugins really need to extend the ctxnav, they can probably do so
using an ITemplateStreamFilter anyway.
I rather think this refactoring fits well with the 0.12 goals already
mentioned elsewhere [1]. In particular, one goal would be to actually
/remove/ all the layout related stuff from the Request, as that part of
the code is quite fragile (see e.g.
http://trac.edgewall.org/changeset/6135), and not to add more to it.
-- Christian
[1] - see "improve the rendering layer" in
http://groups.google.com/group/trac-dev/msg/77ab0f08a67e1a9c
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups "Trac
Development" 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/trac-dev?hl=en
-~----------~----~----~----~------~----~------~--~---