On Wednesday, August 30, 2017 at 1:09:53 AM UTC-7, Tim Ward wrote:
>
> data = '{{ "params": [ {}, "{}", {{ "action": "leave" }}, true ],
> "method": "ticket.update" }}'
>
> r = requests.post( url, data=data.format( ticketId, comment ),
> headers=headers, auth=auth )
>
> (Python) - how do I usefully include a line break in the content of the
> comment string variable?
>
Your code snippet uses Requests, but your earlier comment discussed using
XmlRpcPlugin. If you want to send rpc requests you should use xmlrpclib:
https://trac-hacks.org/rpc#XML-RPC
https://trac-hacks.org/wiki/XmlRpcPlugin#PythonEnd-UserUsage
... or did I misread your intention?
- Ryan
--
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 https://groups.google.com/group/trac-users.
For more options, visit https://groups.google.com/d/optout.