id,summary,reporter,owner,description,type,status,priority,component,severity,resolution,keywords,cc,release 4887,"[patch] MYPAGE_VIEW not registered properly, so doesn't show up in permission list",dclark,dgc,"After putting the !TracMyPage.py file in the plugins directory and restarting apache, trac does not seem to know about the ""MYPAGE_VIEW"" permission that the plugin needs in order to show up. Workaround if you are fine with all users seeing the nav item is below; it just removes any reliance on permissions. This is under trac v0.11.3. {{{ #!diff --- /tmp/TracMyPage.py.orig 2009-03-07 06:06:08.000000000 -0500 +++ TracMyPage.py 2009-03-07 06:07:19.168416638 -0500 -4,7 +4,6 @@ from trac.web import IRequestHandler from trac.web.api import IRequestFilter from trac.web.chrome import INavigationContributor -from trac.perm import IPermissionRequestor, IPermissionPolicy class MyPagePlugin(Component): -15,8 +14,7 @@ return 'mypage' def get_navigation_items(self, req): - if req.perm.has_permission('MYPAGE_VIEW'): - yield ('mainnav', 'mypage', html.A('My Page', href=req.href.me())) + yield ('mainnav', 'mypage', html.A('My Page', href=req.href.me())) # IRequestHandler methods }}}",defect,assigned,normal,TracMyPagePlugin,normal,,permission,,0.11