#3692: [PATCH] - Enable Generic use of INavigationContributor
---------------------------------+------------------------------------------
Reporter: ilias@lazaridis.com | Owner: daniel
Type: enhancement | Status: new
Priority: normal | Milestone: 0.10
Component: project | Version: 0.10b1
Severity: normal | Keywords:
---------------------------------+------------------------------------------
The following code
{{{
#!python
implements(INavigationContributor)
def get_navigation_items(self, req):
yield 'projnav', 'guide', html.a( 'Project Guide',
href=self.env.href.wiki('ProjectGuide') )
}}}
crashes within source:/trunk/trac/web/chrome.py, as there's no Option
"projnav_order" defined.
The attached patch enables that code without the need to define an Option.
This way, new custom navigation items can be generated dynamically,
without any modifications in the source code / ini-files.
--
Ticket URL: <http://trac.edgewall.org/ticket/3692>
The Trac Project <http://trac.edgewall.org/>
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups "Trac Tickets" group.
To post to this group, send email to trac-tickets@googlegroups.com
To unsubscribe from this group, send email to trac-tickets-unsubscribe@googlegroups.com
For more options, visit this group at http://groups.google.se/group/trac-tickets
-~----------~----~----~----~------~----~------~--~---
---------------------------------+------------------------------------------
Reporter: ilias@lazaridis.com | Owner: daniel
Type: enhancement | Status: new
Priority: normal | Milestone: 0.10
Component: project | Version: 0.10b1
Severity: normal | Keywords:
---------------------------------+------------------------------------------
The following code
{{{
#!python
implements(INavigationContributor)
def get_navigation_items(self, req):
yield 'projnav', 'guide', html.a( 'Project Guide',
href=self.env.href.wiki('ProjectGuide') )
}}}
crashes within source:/trunk/trac/web/chrome.py, as there's no Option
"projnav_order" defined.
The attached patch enables that code without the need to define an Option.
This way, new custom navigation items can be generated dynamically,
without any modifications in the source code / ini-files.
--
Ticket URL: <http://trac.edgewall.org/ticket/3692>
The Trac Project <http://trac.edgewall.org/>
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups "Trac Tickets" group.
To post to this group, send email to trac-tickets@googlegroups.com
To unsubscribe from this group, send email to trac-tickets-unsubscribe@googlegroups.com
For more options, visit this group at http://groups.google.se/group/trac-tickets
-~----------~----~----~----~------~----~------~--~---