[Zope] Unicode error again?

Jan Ulrich Hasecke janulrich.hasecke@web.de
Wed, 16 Oct 2002 14:00:50 +0200


Hi,

again me with Zope 2.6.0b1, plone beta1 and all the i18n-stuff.

When I join the portal and select "Yes, please send me my password" at
the registration form I get this error:

expected string, unicode found

Navigation trace: (version 1.28)
-----------------

Invoking validation
Invoking validate_registration
         -> (success, {'errors': {}, 'portal_status_message': 'You have been registered.'})
Validation returned (success, {'errors': {}, 'portal_status_message': 'You have been registered.'})
Looking up transition for <PloneSite instance at 949fc08>.join_form.success
Found transition: script, register
dispatchScript: script = register

Traceback (most recent call last):
  File "/home/iploneuser/Zope-2.6.0b1-src/lib/python/Products/CMFPlone/NavigationTool.py", line 260, in _dispatchScript
    self.REQUEST, bind=1)
  File "/home/iploneuser/Zope-2.6.0b1-src/lib/python/ZPublisher/mapply.py", line 88, in mapply
    if debug is not None: return debug(object,args,context)
  File "/home/iploneuser/Zope-2.6.0b1-src/lib/python/ZPublisher/Publish.py", line 39, in call_object
    result=apply(object,args) # Type s<cr> to step into published object.
  File "/home/iploneuser/Zope-2.6.0b1-src/lib/python/Products/CMFCore/FSPythonScript.py", line 90, in __call__
    return Script.__call__(self, *args, **kw)
  File "/home/iploneuser/Zope-2.6.0b1-src/lib/python/Shared/DC/Scripts/Bindings.py", line 252, in __call__
    return self._bindAndExec(args, kw, None)
  File "/home/iploneuser/Zope-2.6.0b1-src/lib/python/Shared/DC/Scripts/Bindings.py", line 283, in _bindAndExec
    return self._exec(bound_data, args, kw)
  File "/home/iploneuser/Zope-2.6.0b1-src/lib/python/Products/CMFCore/FSPythonScript.py", line 124, in _exec
    result = apply(f, args, kw)
  File "Script (Python)", line 9, in register
  File "/home/iploneuser/Zope-2.6.0b1-src/lib/python/Products/CMFDefault/RegistrationTool.py", line 178, in registeredNotify
    host.send( mail_text )
  File "/home/iploneuser/Zope-2.6.0b1-src/lib/python/Products/MailHost/MailHost.py", line 122, in send
    messageText, mto, mfrom = _mungeHeaders( messageText, mto, mfrom, subject)
  File "/home/iploneuser/Zope-2.6.0b1-src/lib/python/Products/MailHost/MailHost.py", line 172, in _mungeHeaders
    mfile=StringIO(messageText.strip())
TypeError: expected string, unicode found

 (Also, an error occurred while attempting to render the standard
 error message.)

Any hints?

Ciao!
juh
-- 
Shakespeares Affen und das deutsche Wahlvolk
http://www.sudelbuch.de/2001/20010326.html