> action.permissions = TRAC_DEFINED_PERMISSION -- is useful and I tried
> that way... But in this case I had to be able to define new
> permissions in trac.
>
Creating permissions in 0.11 is easy. Just drop the following into a file in
your plug-ins directory:
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')
--Ixo
--~--~---------~--~----~------------~-------~--~----~
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
-~----------~----~----~----~------~----~------~--~---