On Wednesday, August 7, 2013 4:03:21 PM UTC-7, ivanelson wrote:

> Rjollos,
>
> 1. I do not understand how to configure/use this function. :(
>      
>
>>      AdvancedTicketWorkflowPlugin
>>    
>>    - run_external (TicketWorkflowOpRunExternal) 
>>
>>
I haven't used it myself, and it looks like the documentation could be 
improved a bit. From reading the brief documentation and source code, it 
will run a script in $env/hooks/ (it would be nice if the script location 
was a configuration option). The script can have no extension, or the 
`cmd`, `bat` or `exe` extensions. The script gets passed the ticket id as a 
string and user's session name.

http://trac-hacks.org/browser/advancedticketworkflowplugin/0.12/advancedworkflow/controller.py?rev=9962&marks=316#L312
 

If needed you could modify the source code to pass additional information. 
The caller is a subclass of Component and is passed a Request object, so it 
seems you'd have quite a bit of flexibility if you wanted to pass more 
information to the script.

-- 
You received this message because you are subscribed to the Google Groups "Trac 
Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To post to this group, send email to [email protected].
Visit this group at http://groups.google.com/group/trac-users.
For more options, visit https://groups.google.com/groups/opt_out.

Reply via email to