Christian Boos wrote:
> 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.
>   
We won't have another time when everyone is already reworking their
templates massively, this is the best time to do it. I don't think we
can reasonably delay this change given that.

--Noah

Attachment: signature.asc
Description: OpenPGP digital signature

Reply via email to