[Zope-Checkins] SVN: Zope/trunk/ - Collector #1583/ZReST: Fixed handling of the title attribute

Andreas Jung andreas at andreas-jung.com
Thu Nov 18 08:18:15 EST 2004


Log message for revision 28471:
        - Collector #1583/ZReST: Fixed handling of the title attribute
          for non-ascii characters.
  

Changed:
  U   Zope/trunk/doc/CHANGES.txt
  U   Zope/trunk/lib/python/Products/ZReST/ZReST.py

-=-
Modified: Zope/trunk/doc/CHANGES.txt
===================================================================
--- Zope/trunk/doc/CHANGES.txt	2004-11-17 23:06:56 UTC (rev 28470)
+++ Zope/trunk/doc/CHANGES.txt	2004-11-18 13:18:15 UTC (rev 28471)
@@ -41,6 +41,9 @@
 
     Bugs fixed
 
+      - Collector #1583/ZReST: Fixed handling of the title attribute
+        for non-ascii characters.
+
       - Collector #1577: Fixed cryptic error message in ZPublisher if a
         non-ASCII string is passed to a date, int, long or float property.
 

Modified: Zope/trunk/lib/python/Products/ZReST/ZReST.py
===================================================================
--- Zope/trunk/lib/python/Products/ZReST/ZReST.py	2004-11-17 23:06:56 UTC (rev 28470)
+++ Zope/trunk/lib/python/Products/ZReST/ZReST.py	2004-11-18 13:18:15 UTC (rev 28471)
@@ -215,7 +215,7 @@
         if document.children:
             item = document.children[0]
             if item.tagname == 'title':
-                self.title = str(item.children[0])
+                self.title = item.children[0].astext()
 
         # do the format
         self.formatted = pub.writer.write(document, pub.destination)



More information about the Zope-Checkins mailing list