Hey there, I'm trying to write a plugin integrating Trac with the time tracking application at my work. For the last part of the plugin, I need to create a custom Ticket field which will contain a list of time tasks that a user can track time to when making a change to a ticket.
The problem is that the list of tasks comes from the time tracking application via a web service call, and could change on each request. I'm trying to figure out a way to call this web service when the ticket form is rendered, and use the response to populate the values for the tasks custom field. Also, the list of tasks depends on the logged in user (i.e. the login name is a parameter for the web request). At first I starting by adding another event to the ticket code called ticket_fields_populated (called at the end of the get_ticket_fields function). But this way I don't have access to the req object, which I believe I need to get the username of the logged in user. Then I tried to use the post_process_request, but then I don't have access to the ticket itself to change it. So I guess my question is: is there a way to get to the request object without having it passed to you? Or is there another way to manipulate the values of the custom fields other than what I have described? Thanks, Dylan --~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---
