Yes this works. req.get_header('User-Agent') is "XML-RPC.NET" when RPCs try to change tickets.
Thanks On Thursday, July 26, 2018 at 4:31:15 PM UTC-5, RjOllos wrote: > > > > On Thursday, July 26, 2018 at 12:00:29 PM UTC-7, Matt wrote: >> >> I have the XML RPC plugin version 1.1.6 installed in Trac 1.2.2 to allow >> ticket updates via API. >> >> Does anyone know of a good way to detect when changes come from RPCs so I >> can bypass my ticket_validation for instance? >> > > You can probably determine from the User-Agent string in the request. You > can probably inspect with: req.get_header('User-Agent') > > I haven't tried though. Let me know if it works. > > - 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 trac-dev+unsubscr...@googlegroups.com. To post to this group, send email to trac-dev@googlegroups.com. Visit this group at https://groups.google.com/group/trac-dev. For more options, visit https://groups.google.com/d/optout.