[Zope3-checkins] SVN: Zope3/trunk/src/zope/app/generations/browser/managerdetails.py always passing unicode strings to the rest renderer

Andreas Jung andreas at andreas-jung.com
Tue Mar 14 01:42:39 EST 2006


Log message for revision 66007:
  always passing unicode strings to the rest renderer
  since unicode is specified als input_encoding
  

Changed:
  U   Zope3/trunk/src/zope/app/generations/browser/managerdetails.py

-=-
Modified: Zope3/trunk/src/zope/app/generations/browser/managerdetails.py
===================================================================
--- Zope3/trunk/src/zope/app/generations/browser/managerdetails.py	2006-03-14 00:53:00 UTC (rev 66006)
+++ Zope3/trunk/src/zope/app/generations/browser/managerdetails.py	2006-03-14 06:42:38 UTC (rev 66007)
@@ -77,7 +77,8 @@
             if info is None:
                 info = ''
             else:
-                renderer = ReStructuredTextToHTMLRenderer(info, self.request)
+                # XXX: the renderer *expects* unicode as input encoding (ajung)
+                renderer = ReStructuredTextToHTMLRenderer(unicode(info), self.request)
                 info = renderer.render()
                 
             evolvers.append({'from': gen, 'to': gen+1, 'info': info})



More information about the Zope3-Checkins mailing list