On Tuesday 26 May 2009 17:11:10 Nicolas Palix wrote:
> 
> Hi,
> 
> 
> I'm trying to implement the ITicketActionController for Trac 0.11.4
> and I followed the VoteOperation and CodeReview examples
> but I haven't any new action taken into account.
> 
> I have followed the instruction in VoteOperation and changed my
> [ticket] section with
> workflow = ConfigurableTicketWorkflow,VoteOperation
> 
> However, the following function does not add the vote action and I get an 
> empty
> list in the log.
> 
>     def get_ticket_actions(self, req, ticket):
> 
>         self.log.debug('Registering \'vote\' action')
> 
>         controller = ConfigurableTicketWorkflow(self.env)
>         actions = controller.get_actions_by_operation_for_req(req,
> ticket, 'vote')
>         self.log.debug('Workflow actions after VoteOperation: %s' %
>                        str(actions))
> 
>         return actions
> 
> It seems I also need to change the workflow but I am not sure of that and
> I don't know how to do it.
> 

It has been fixed then.

Regards.
> 



-- 
Nicolas Palix

--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups "Trac 
Development" 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-dev?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to