> 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 <
harsha...@gmail.com> 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.