Whether I use that library or not the data is going to be sent over the
same HTTP interface so why would it matter which layers of libraries I
use at the client side?
On 30/08/2017 19:09, RjOllos wrote:
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 a topic in the
Google Groups "Trac Users" group.
To unsubscribe from this topic, visit
https://groups.google.com/d/topic/trac-users/g8PAErIOgLQ/unsubscribe.
To unsubscribe from this group and all its topics, send an email to
[email protected]
<mailto:[email protected]>.
To post to this group, send email to [email protected]
<mailto:[email protected]>.
Visit this group at https://groups.google.com/group/trac-users.
For more options, visit https://groups.google.com/d/optout.
--
Tim Ward
Brett Ward Ltd - www.brettward.co.uk - 07801 703 600
--
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.