Modify ↓
Opened 16 years ago
Closed 16 years ago
#3609 closed defect (worksforme)
(patch) fix a crash when id include a non-ascii character(eg. a fullblog short name)
Reported by: | Wang Diancheng | Owned by: | Alec Thomas |
---|---|---|---|
Priority: | normal | Component: | TagsPlugin |
Severity: | normal | Keywords: | |
Cc: | Trac Release: | 0.10 |
Description
-
macros.py
old new 77 77 78 78 ul = builder.ul(class_='taglist') 79 79 for resource, tags in sorted(query_result, 80 key=lambda r: str(r[0].id)):80 key=lambda r: unicode(r[0].id)): 81 81 tags = sorted(tags) 82 82 if tags: 83 83 rendered_tags = [
Attachments (0)
Note: See
TracTickets for help on using
tickets.
Seeing that FullBlogPlugin is 0.11 only, this seems like a strange version mix-up. I cannot find the use of
str
in your patch in the latest tags plugin trunk - it already uses unicode.Use Trac 0.11.x, FullBlogPlugin and TagsPlugin from trunk and this should work fine.