[CMF-checkins] CVS: Products/CMFDefault/skins/zpt_generic - RSS.py:1.3

Yvo Schubbe y.2004_ at wcm-solutions.de
Sun Oct 17 16:14:12 EDT 2004


Update of /cvs-repository/Products/CMFDefault/skins/zpt_generic
In directory cvs.zope.org:/tmp/cvs-serv6966/CMFDefault/skins/zpt_generic

Modified Files:
	RSS.py 
Log Message:
- fixed encoding (http://collector.zope.org/CMF/261, part 3)


=== Products/CMFDefault/skins/zpt_generic/RSS.py 1.2 => 1.3 ===
--- Products/CMFDefault/skins/zpt_generic/RSS.py:1.2	Wed Sep  1 11:25:48 2004
+++ Products/CMFDefault/skins/zpt_generic/RSS.py	Sun Oct 17 16:14:12 2004
@@ -3,7 +3,9 @@
 from ZTUtils import Batch
 from ZTUtils import LazyFilter
 from Products.CMFCore.utils import getToolByName
+from Products.CMFDefault.utils import toUnicode
 
+ptool = getToolByName(script, 'portal_properties')
 stool = getToolByName(script, 'portal_syndication')
 
 
@@ -40,4 +42,5 @@
                     'url': item.absolute_url() } )
 options['listItemInfos'] = tuple(items)
 
+options = toUnicode( options, ptool.getProperty('default_charset', None) )
 return context.RSS_template(**options)



More information about the CMF-checkins mailing list