Ticket #13088 (confirmed Bug)
text/calendar mimetype TypeError: decoding Unicode is not supported
Reported by: | dreweso@… | Owned by: | |
---|---|---|---|
Priority: | minor | Milestone: | 4.x |
Component: | General | Version: | 4.1 |
Keywords: | mimetype, templates, typeerror | Cc: |
Description (last modified by kleist) (diff)
2012-08-02 11:21:45 ERROR Zope.SiteErrorLog 1343899305.350.391165246793 http://xxx/HRZTest410/portal_skins/custom/ics_template/pt_editAction Traceback (innermost last): Module ZPublisher.Publish, line 126, in publish Module ZPublisher.mapply, line 77, in mapply Module ZPublisher.Publish, line 46, in call_object Module Products.PageTemplates.ZopePageTemplate, line 197, in pt_editAction Module Products.PageTemplates.ZopePageTemplate, line 162, in pt_edit Module Products.PageTemplates.utils, line 77, in convertToUnicode TypeError: decoding Unicode is not supported
The Workflow to get it:
Create a new template file in portal_skins/custom change the mimetype to text/calendar (this type is registered by default)
Tada: You got the error. Same things happens when you change the mimetype of an existing template to this.
Change History
Note: See
TracTickets for help on using
tickets.
http://zope3.pov.lt/trac/browser/Zope/trunk/src/Products/PageTemplates/utils.py#L77
We should use something like this in Plone: http://pypi.python.org/pypi/chardet