Danny Adair wrote:
On 6/13/06, Ilias Lazaridis
<[EMAIL PROTECTED]> wrote:
Matthew Good wrote:
...
They do not behave the same, as said, metanav cannot be
altered:
You can test it with this code:
class MetanavChange(Component):
implements(INavigationContributor)
# INavigationContributor methods def
get_active_navigation_item(self, req): return ''
def get_navigation_items(self, req): yield 'mainnav', 'search',
Markup('HELLO') yield 'metanav', 'logout', Markup('HELLO')
Well, 'search' and 'logout' are names used by the built-in Trac
components, so you shouldn't use them as identifiers for your
custom
nav
items. Both nav items showed up when I gave them new
identifiers.
ok, it was late.
thus both navigation-bars are like iron.
I've understood now that modification cannot be applied.
Hello Ilias,
I thought this worked:
http://trac-hacks.org/browser/traccasplugin/0.9/traccas/traccas.py?rev=472
Cheers, Danny
Ok, I think I understand.
The code you point to _overides_ most possibly the class which provides
the navigation items.
Will try it.
.
--
http://lazaridis.com
_______________________________________________
Trac mailing list
[email protected]
http://lists.edgewall.com/mailman/listinfo/trac