Opened 13 years ago
Closed 11 years ago
#9254 closed defect (fixed)
Too few colors, UTF8 issue
Reported by: | anonymous | Owned by: | Ryan J Ollos |
---|---|---|---|
Priority: | normal | Component: | TicketChartsMacro |
Severity: | normal | Keywords: | colors utf8 ascii |
Cc: | Ryan J Ollos, Ivanelson Nunes | Trac Release: | 0.11 |
Description (last modified by )
Dear All i made a patch due to UTF8/ASCII issues (wip) and increased the number of usable colors.
The patch was from TicketCharts.py@8488.
Attachments (1)
Change History (15)
Changed 13 years ago by
Attachment: | TicketCharts.py.patch added |
---|
comment:1 Changed 11 years ago by
Description: | modified (diff) |
---|
comment:2 Changed 11 years ago by
Cc: | Ivanelson Nunes added |
---|
comment:3 Changed 11 years ago by
-class TicketChart(WikiMacroBase): +class TicketChartMacro(WikiMacroBase):
It seems that there is a difference in the name of the module!?
comment:4 follow-up: 5 Changed 11 years ago by
The class was recently renamed to conform to Trac conventions. You'll have to ignore that part of the patch.
comment:5 Changed 11 years ago by
Replying to rjollos:
The class was recently renamed to conform to Trac conventions. You'll have to ignore that part of the patch.
Yes class! Sorry. I will delete these lines patch.
comment:6 follow-up: 7 Changed 11 years ago by
I'm not sure about the encoding
that is done in the patch, and whether that is done correctly, but if the additional colors work well for you, I will go ahead and commit that portion of the patch.
comment:7 follow-up: 10 Changed 11 years ago by
Replying to rjollos:
I'm not sure about the
encoding
that is done in the patch, and whether that is done correctly, but if the additional colors work well for you, I will go ahead and commit that portion of the patch.
If the number of colors is less than the number of keys will be exceptions such as:
list index out of range
If the patch fails or colors are not nice I go back to the original version.
comment:8 Changed 11 years ago by
The patch failed!
ivan@dctvpsubu120012-bkp:/usr/local/lib/python2.7/dist-packages/TracTicketCharts-0.2dev-py2.7.egg/ticketcharts$ patch < TicketCharts.py.patch patching file TicketCharts.py Hunk #1 FAILED at 90. Hunk #2 succeeded at 223 (offset 23 lines). Hunk #3 FAILED at 284. Hunk #4 succeeded at 383 with fuzz 2 (offset 45 lines). Hunk #5 FAILED at 374. patch: **** malformed patch at line 77:
comment:9 follow-up: 11 Changed 11 years ago by
The codebase has changed significantly since the patch was created. I wouldn't worry about applying the patch anyway, and just directly add the additional colors to the source.
comment:10 Changed 11 years ago by
Replying to anonymous:
If the number of colors is less than the number of keys will be exceptions such as:
We should make sure to catch and handle that exception, or better yet, reuse the existing colors once they've all been exhausted. But more colors in the list can only help with this situation, right?
comment:11 Changed 11 years ago by
Replying to rjollos:
The codebase has changed significantly since the patch was created. I wouldn't worry about applying the patch anyway, and just directly add the additional colors to the source.
I copied the patch only the list of colors and manually insert the original. see:
https://dl.dropboxusercontent.com/u/35679162/Ticket_Status_by_Owner.PNG
I think it looks good.
comment:12 Changed 11 years ago by
Owner: | changed from aviram to Ryan J Ollos |
---|---|
Status: | new → assigned |
Thanks for testing. I will apply the patch.
comment:13 Changed 11 years ago by
The patch for increasing the number of colors looks good. However, to handle unicode in the output, we should encode as UTF-8, not ascii. That will be handled in #6904.
comment:14 Changed 11 years ago by
Resolution: | → fixed |
---|---|
Status: | assigned → closed |
Patch to increase number of colors, and manage string convertion (extra chars éè..., into ascii)