[CMF-checkins] SVN: CMF/branches/2.0/CMFDefault/skins/zpt_control/setRedirect.py - made sure we don't get an Unauthorized exception if message is an i18n Message object

Yvo Schubbe y.2006_ at wcm-solutions.de
Mon Mar 20 11:23:09 EST 2006


Log message for revision 66113:
  - made sure we don't get an Unauthorized exception if message is an i18n Message object

Changed:
  U   CMF/branches/2.0/CMFDefault/skins/zpt_control/setRedirect.py

-=-
Modified: CMF/branches/2.0/CMFDefault/skins/zpt_control/setRedirect.py
===================================================================
--- CMF/branches/2.0/CMFDefault/skins/zpt_control/setRedirect.py	2006-03-20 11:56:35 UTC (rev 66112)
+++ CMF/branches/2.0/CMFDefault/skins/zpt_control/setRedirect.py	2006-03-20 16:23:09 UTC (rev 66113)
@@ -17,7 +17,7 @@
 message = context.REQUEST.other.get('portal_status_message', '')
 if message:
     if isinstance(message, unicode):
-        message = message.encode(default_charset)
+        message = unicode(message).encode(default_charset)
     kw['portal_status_message'] = message
 for k, v in kw.items():
     if not v:



More information about the CMF-checkins mailing list