[Checkins] SVN: GenericSetup/trunk/context.py - fixed readDataFile
(PageTemplates now return unicode)
Yvo Schubbe
y.2007- at wcm-solutions.de
Mon Feb 19 04:30:34 EST 2007
Log message for revision 72664:
- fixed readDataFile (PageTemplates now return unicode)
Changed:
U GenericSetup/trunk/context.py
-=-
Modified: GenericSetup/trunk/context.py
===================================================================
--- GenericSetup/trunk/context.py 2007-02-18 22:51:34 UTC (rev 72663)
+++ GenericSetup/trunk/context.py 2007-02-19 09:30:32 UTC (rev 72664)
@@ -565,7 +565,10 @@
return None
try:
- return object.read()
+ data = object.read()
+ if isinstance(data, unicode):
+ data = data.encode('utf-8')
+ return data
except AttributeError:
return object.manage_FTPget()
More information about the Checkins
mailing list