#14976: Add is_html flag to contrib.messages -----------------------------------+---------------------------------------- Reporter: tedtieken | Owner: nobody Status: new | Milestone: Component: Contrib apps | Version: 1.2 Resolution: | Keywords: safe, messages, html Stage: Accepted | Has_patch: 0 Needs_docs: 0 | Needs_tests: 0 Needs_better_patch: 0 | -----------------------------------+---------------------------------------- Comment (by lukeplant):
I would propose that you change the serialisation in the cookie backend to a list that is always 5 items. That way we can easily tell the old from the new, and the new always have the full set of data. We can live with the overhead, and it is more robust going forward. We can encode the boolean is_html as 0 or 1 for compactness. For the session backend, a better option is to simply fix up the defective instances of Message after unpickling. -- Ticket URL: <http://code.djangoproject.com/ticket/14976#comment:5> Django <http://code.djangoproject.com/> The Web framework for perfectionists with deadlines. -- You received this message because you are subscribed to the Google Groups "Django updates" group. To post to this group, send email to django-upda...@googlegroups.com. To unsubscribe from this group, send email to django-updates+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/django-updates?hl=en.