On Tuesday, March 7, 2017 at 6:03:19 AM UTC-8, Logan Anderson wrote:
>
> Thank you for your response.
>
> What I was specifically hoping for was a solution within validate_ticket
> to detect that it is a new ticket specifically. I can check req.path_info
> in ('/newticket') but that doesn't capture new tickets created via the RPC
> or other methods.
>
ITicketManipulators aren't called by XmlRpcPlugin:
https://trac-hacks.org/ticket/10738
I think there is some relevant discussion about this in #11148, but I
haven't looked at that ticket in a while.
https://trac.edgewall.org/ticket/11148
Within validate_ticket it is easy enough to test whether you are dealing
with a new ticket: in addition to checking "req.path_info == /newticket"
you can use "ticket.exists". However it sounds like your issue is that
validate_ticket is not called by XmlRpcPlugin.
Note that the behavior of ITicketChangeListener is different from
ITicketManipulator, but it should still be called when creating a ticket
via XmlRpcPlugin.
- Ryan
--
You received this message because you are subscribed to the Google Groups "Trac
Development" 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 https://groups.google.com/group/trac-dev.
For more options, visit https://groups.google.com/d/optout.