Changes between Version 27 and Version 28 of TracTicketsCustomTimeFields
- Timestamp:
- Apr 23, 2010, 1:56:16 AM (14 years ago)
Legend:
- Unmodified
- Added
- Removed
- Modified
-
TracTicketsCustomTimeFields
v27 v28 6 6 * add 'time' to available types, inheriting most of the definition from 'text', a simple (one line) text field[[BR]] 7 7 8 At that point TracQuery already works as intended by providing from..to 9 input fields on selection of custom time fields for query. 10 Praise to the flexible, modularized software design of Trac developers! 8 At that point TracQuery already shows from..to input fields on selection of custom time fields for query as desired. 9 Praise to the flexible, modularized software design of Trac developers! Making it actually work and display results in pretty date/time format is a different thing. 11 10 12 But now at leastbasic knowledge on how ticket data is handled inside Trac is needed.[[BR]]11 But now more than basic knowledge on how ticket data is handled inside Trac is needed.[[BR]] 13 12 (I found not much hints so had to study the code and initially did most things wrong. A multiple dozen not working or buggy local code revisions later, after discussion in #python, etc. I decided on the implementation detailed below. Please discuss, if you know better, I'm still a Python beginner.) 14 13 … … 28 27 * patched version of [th:wiki:AnnouncerPlugin AnnouncerPlugin] for now 29 28 * still unsure on patching Trac Ticket Notifications itself, since it looks like almost dead code (sorry, but Announcer is years ahead) and Announcer is already officially attempting to replace Trac Ticket Notifications (see below) 29 * extend ''ticket.query'' and ''ticket/templates/query_results.html'' to 30 * convert custom time strings with POSIX microsecond time stamps from ticket_custom db table to datetime.datetime values 31 * format custom time values for display differently than standard time values 30 32 31 33 === Status of Development === … … 55 57 ==== Known Bugs ==== 56 58 Problems (with priority) occurring arround ticket changes 57 * (A) {{{TypeError: unsupported type for timedelta microseconds component: unicode}}} on CustomQuery58 59 * (B) [TracNotification Trac Notification] system unpatched, need to test and investigate, if necessary at all 59 60 fixed: 60 * preview custom time stamp changes is throwing an exception on internal formatting: fixed after realising, that we deal with different formats in _render_property_diff() 61 * {{{TypeError: unsupported type for timedelta microseconds component: unicode}}} on TracQuery: simply needed to take care for conversation of variable type 'string' to a number and handle custom time values in trac/ticket/templates/query_results.html separately from standard time fields 62 * preview custom time stamp changes is throwing an exception on internal formatting: resolved after realising, that we deal with different formats in _render_property_diff() 61 63 a. string with POSIX microsecond time stamp from db, directed to ticket changes list 62 64 b. datetime.datetime values from user input for change-in-progress, directed to preview current custom time field changes