Hello I've experienced some issues while using XMLRPC plugin to
retrieve ticket changes. See below for further details (Thnx in
advance ;):
olemis To be more precise about the issue at hand
olemis I have the following changes
16:03 olemis 2 new Date(2009,4,3,8,19,25) 'olemis' 'comment' '1' 'My
extremely useful comment' true
olemis 2 new Date(2009,4,4,1,52,46) 'olemis' 'attachment' '' 'aaa.sql'
false
olemis 2 new Date(2009,4,4,1,52,46) 'olemis' 'comment' '' 'AAaaaaaaa'
false
olemis 2 new Date(2009,4,4,1,53,9) 'olemis' 'attachment' '' 'aaa.prj'
false
olemis 2 new Date(2009,4,4,1,53,9) 'olemis' 'comment' '' 'Initialize
me baby !' false
olemis pay attention to the info inside `new Date()`
olemis and
16:07 olemis and the following code snippet should return something at
least last four rows
olemis >>> p
olemis <ServerProxy for 172.18.2.148:8000/trac-dev/xmlrpc>
olemis >>> dt = datetime(2009,5,4,1,52,43)
olemis >>> dtv = DateTime(dt)
olemis >>> p.ticket.getRecentChanges(dtv)
olemis []
olemis but doesnt
16:08 retracile olemis: I notice the month is 4 above, but 5 in
your
later stuff....
16:09 olemis That's because javascript months start at 0 and datetime's at 1
olemis this is explicitly handled by gviz_api module when a DataTable
is built oiut of its values
olemis retracile: both months are may (above for JS, below for
datetime)
16:12 retracile olemis: ok
16:16 thatch olemis: let me understand... the returned datetime
objects are in your user's timezone, but the since parameter for
getRecentChanges is being interpreted as UTC?
16:17 olemis That's the thing ... I am not sure about the coordinates
for these values
olemis so I dont know which one is utc and which one is local
16:18 olemis However my Trac env uses tz -5:00 GMT
16:19 olemis and I also tried
olemis >>>
p.ticket.getRecentChanges(DateTime(datetime(2009,5,3,9,52,43)))
olemis []
16:20 olemis The difference is almost one day
olemis and no changes
olemis Guys why is it that TicketRPC.changeLog doesnot accept neither
datetime objs nor instances of DateTime ?
olemis It gives me the following error : cannot marshal <type
'generator'> objects' while executing 'ticket.changeLog()'
olemis I'm talking about `since` param
thatch olemis: I don't think any of us have lots of experience
with
the xmlrpc plugin. ping coderanger when he's back if you have specific
questions.
--
Regards,
Olemis.
Blog ES: http://simelo-es.blogspot.com/
Blog EN: http://simelo-en.blogspot.com/
Featured article:
Here comes the Sun ... turu ruru. It's Oracle's ! -
http://feedproxy.google.com/~r/simelo-es/~3/EMxV1KHhl60/here-comes-sun-turu-ruru-its-oracles.html
--~--~---------~--~----~------------~-------~--~----~
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
-~----------~----~----~----~------~----~------~--~---