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, ...@@ -130,7 +130,6 @@ class ZopePageTemplate(Script, PageTemplate, Historical, Cacheable,
security.declareProtected(change_page_templates, 'pt_encoding') security.declareProtected(change_page_templates, 'pt_encoding')
def pt_encoding(self): def pt_encoding(self):
encoding = sniffEncoding(self.read()) encoding = sniffEncoding(self.read())
print encoding
return encoding return encoding
from ComputedAttribute import ComputedAttribute from ComputedAttribute import ComputedAttribute
...@@ -142,6 +141,7 @@ class ZopePageTemplate(Script, PageTemplate, Historical, Cacheable, ...@@ -142,6 +141,7 @@ class ZopePageTemplate(Script, PageTemplate, Historical, Cacheable,
text = text.strip() text = text.strip()
if not isinstance(text, unicode): if not isinstance(text, unicode):
text = unicode(text, encoding) text = unicode(text, encoding)
self.ZCacheable_invalidate() self.ZCacheable_invalidate()
PageTemplate.pt_edit(self, text, content_type) 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