MimeTypeException: Malformed MIME type (t)

by Mikko Ohtamaa last modified Dec 30, 2008 03:08 PM
Exception occurs when you try to view/edit your Archetypes object: MimeTypeException: Malformed MIME type (t)

Exception stack trace:

File "e:/plone2/zope/lib/python\Shared\DC\Scripts\Bindings.py", line 343, in _bindAndExec
  return self._exec(bound_data, args, kw)

File "e:\plone2\Data\Products\CMFCore\FSPythonScript.py", line 168, in _exec
  raise e

MimeTypeException: Malformed MIME type (t)

You are missing comma from TextField allowed_content_types.

Fix from:

TextField('issueDescription',
           allowable_content_types=('text/plain'),
           ),

System Message: WARNING/2 (<string>, line 18)

Literal block ends without a blank line; unexpected unindent.

to:

TextField('issueDescription',
           allowable_content_types=('text/plain',),
           ),