Commit 8ee69e8f authored by Andreas Jung's avatar Andreas Jung

removed debug output

parent 01efa6e8
......@@ -130,7 +130,6 @@ class ZopePageTemplate(Script, PageTemplate, Historical, Cacheable,
security.declareProtected(change_page_templates, 'pt_encoding')
def pt_encoding(self):
encoding = sniffEncoding(self.read())
print encoding
return encoding
from ComputedAttribute import ComputedAttribute
......@@ -142,6 +141,7 @@ class ZopePageTemplate(Script, PageTemplate, Historical, Cacheable,
text = text.strip()
if not isinstance(text, unicode):
text = unicode(text, encoding)
self.ZCacheable_invalidate()
PageTemplate.pt_edit(self, text, content_type)
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment