Noah Kantrowitz wrote:
> I am adding a branch for the ctxtnav rewrite. So far only the wiki view
> template/code has been reworked as an example. If no one vastly objects
> to the API used (see below) it would be great if people could help out
> porting modules. Its a very mechanical conversion, but there are a lot
> to get through.
>   
Thanks to Jonas' help, the conversion to the new API is complete.

The general case is still add_ctxtnav(req, elm) where elm is a genshi
Element. A special case has been added for add_ctxtnav(req, label,
href[, title]) to add a simple link.

prevnext_nav(req, label, [uplabel]) now works the same way as the macro,
so make sure to call it after setting up the prev/up/next links.

http://trac.edgewall.org/changeset?new=sandbox%2Fctxtnav%406351&old=trunk%406336
shows all the changes.

--Noah

Attachment: signature.asc
Description: OpenPGP digital signature

Reply via email to