[CMF-checkins]
SVN: CMF/trunk/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:19 EST 2006
Log message for revision 66114:
- made sure we don't get an Unauthorized exception if message is an i18n Message object
Changed:
U CMF/trunk/CMFDefault/skins/zpt_control/setRedirect.py
-=-
Modified: CMF/trunk/CMFDefault/skins/zpt_control/setRedirect.py
===================================================================
--- CMF/trunk/CMFDefault/skins/zpt_control/setRedirect.py 2006-03-20 16:23:09 UTC (rev 66113)
+++ CMF/trunk/CMFDefault/skins/zpt_control/setRedirect.py 2006-03-20 16:23:19 UTC (rev 66114)
@@ -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