Thank you Noah for your response, it pushed me in the right direction
to find out what I needed to know.

For the benefit of anyone else looking for the same information. The
following document descibes how the Trac plugin architechture works:

http://trac.edgewall.org/wiki/TracDev/ComponentArchitecture

I have been able to find out what actions are available for a
particular interface by using the TracDeveloperPlugin (http://trac-
hacks.org/wiki/TracDeveloperPlugin)
which shows the list of plugins installed and the interfaces they use.
Clicking ont eh interface name shows a panel that lists the plugins
that use the interface. Clicking on the itallic description shows the
available methods (actions) for that interface - which is the
information that I was looking for.

If anyone has a different method of looking at the actions exposed by
an interface then I would be interested to know how else to do it.

Thanks,

Chris.

On 16 Nov, 16:06, Noah Kantrowitz <[EMAIL PROTECTED]> wrote:
> You would have to be far more specific about what interface you are  
> looking at. I assume you are talking about making a new permission  
> policy provider, in which case the list of valid permissions comes  
> from the permission contributor extension point.
>
> --Noah
>
> On Nov 14, 2008, at 12:36 PM, Chris Bennell wrote:
>
>
>
> > I'm new to Trac and am getting to grips with how plugins work.
>
> > Is there a list of available Trac actions that can be used in code?
>
> > By 'action' I mean this kind of thing:
> > if action == 'ATTACHMENT_VIEW'
>
> > Another example is the 'COMMENT' action used in the Ticket template:
>
> > I've looked through the Trac documents and Googled to no avail.
> > It would be really usefull to know what actions I can test for and
> > would influence how I go about tackling a problem by creating a
> > plugin.
>
> > Many thanks,
>
> > Chris.

--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups "Trac 
Users" group.
To post to this group, send email to trac-users@googlegroups.com
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
-~----------~----~----~----~------~----~------~--~---

Reply via email to