Thanks a lot for the response, it really helps... On Fri, Sep 12, 2008 at 6:51 PM, <[EMAIL PROTECTED]> wrote:
> > On Sep 11, 3:52 pm, Jeff Hammel <[EMAIL PROTECTED]> wrote: > > Actually, its at trac-hacks.org: > > > > http://trac-hacks.org/wiki/BlackMagicTicketTweaksPlugin > > > > Jeff Hammel > > The Open Planning Projecthttp://topp.openplans.org > > > > On Thu, Sep 11, 2008 at 01:39:10PM -0700, Jerry Brown wrote: > > > > > Its at Trac-Hacks (track-hacks.com). > > > > > On Sep 5, 10:47 am, Hare <[EMAIL PROTECTED]> wrote: > > > > Hi, > > > > > > Is there way that I can add a custom permission this is to restrict > > > > some of the workflow transitions. I had seen some of the previous > > > > posts and it was asked to refer BlackMagicTicketTweaks. But I am not > > > > able to find the same. > > > > Thanks in advance for any pointers.. > > > > > > --hare > > I lost the thread/link, but someone recently posted something about > how to write you're very own plugin, that all it did was implement > custom permissions. It consisted of the following: > <pre> > from trac.core import Component, implements > from trac.perm import IPermissionRequestor > > class MyPermissions(Component): > implements(IPermissionRequestor) > > def get_permission_actions(self): > return ('MY_FIRST_PERM', 'MY_SECOND_PERM') > </pre> > > with MY_FIRST_PERM, MY_SECOND_PERM as some new permissions added in > this case > you then added the MyPermissions handler to your permission handler > list in config. > > not sure if that is what you are after. > > > --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Trac Users" group. To post to this group, send email to [email protected] To unsubscribe from this group, send email to [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/trac-users?hl=en -~----------~----~----~----~------~----~------~--~---
