Ilias Lazaridis wrote: > Christian Boos wrote: > > Ilias Lazaridis wrote: > > > I am currently introducing the ability to use "order=changetime" within > > > a ticket-query. > > > > > > So far everything is fine, you can see the status within this ticket: > > > > > > http://trac.edgewall.org/ticket/3990 > > > > > > One tiny problem: > > > > the whole query stuff has to be fixed w.r.t the recent datetime changes. > > I have that next on my TODO list, so these issues should be fixed soon > > (over the W.E. normally). > > Sounds good! > > But I'm at this point 'caught' by this tiny task, and need to fulfill > it to become calmy again. > > I've implemented it this way: > > http://trac.edgewall.org/attachment/ticket/3990/TicketQueryMacroAddTimestampFormatting.diff
I've found finally a simple solution. this patch does the work, within the wiki and the UI: http://trac.edgewall.org/attachment/ticket/3990/TicketQueryMacroAddTimestampFormattingInt.diff > which runs fine within the wiki. > > But in the query module, this leads to an error (most possibly due to > the converted timestamp-value): > > UnicodeEncodeError: 'decimal' codec can't encode character u'\u03bc' in > position 18: invalid decimal Unicode string > > " > File "p:\org\trac\trac\ticket\query.py", line 407, in template_data > Code fragment: > > 401. groupsequence = [] > 402. for ticket in tickets: > 403. if orig_list: > 404. # Mark tickets added or changed since the query was first > 405. # executed > 406. if int(ticket['time']) > orig_time: > " > > local vars: > ticket {u'status': u'new', u'changetime': u'20/10/2006 2:18:35 > \u03bc\u03bc', ... > orig_time 1161361294 > > So, I guess that was the wrong point to change the display-value. > > . --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Trac Development" 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-dev -~----------~----~----~----~------~----~------~--~---
