Hi
I am using XmlRpcPlugin to download, modify, and update tickets
(specifically our custom field 'reviewno'). The API for
ticket.update() says:
"'New-style' call requires two additional items in attributes: (1)
'action' for workflow support (including any supporting fields as
retrieved by getActions()), (2) '_ts' changetime token for detecting
update collisions (as received from get() or update() calls). Calling
update without 'action' and '_ts' changetime token is deprecated, and
will raise errors in a future version."
So what is supposed to go in the action entry. If I have it there but
blank, I get back
xmlrpc.client.Fault: <Fault 1: "'Rpc: Ticket 52 by admin invalid
action ''' while executing 'ticket.update()'">
and when I don't put it in at all it works. My guess to why this works
is because the error raising has not yet been enabled. However, I
would like my program to still work when the API is updated. At the
moment I am stripping out everything from attributes except reviewno,
and _ts at the moment so that any accidental changes to other fields
are not uploaded.
Also, should I be updating _ts when I upload the ticket, or is just
using the value that came down with the ticket ok? Currently I use the
value that came down with Trac, and that seems to work, but it's not
clear if I am being told to use use the value I got from ticket.get(),
or if I should generate a new one at upload time with the same format.
Thanks
Scott
--
You received this message because you are subscribed to the Google Groups "Trac
Users" 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-users?hl=en.