Commit 968a3f21 authored by Jim Fulton's avatar Jim Fulton

Made cooked attribute volatile (_v_cooked) to get around acquisition

problem and to make a first step toward getting rid of evil
__getstate__.
parent 30f3d875
...@@ -84,7 +84,7 @@ ...@@ -84,7 +84,7 @@
############################################################################## ##############################################################################
"""HTML formated DocumentTemplates """HTML formated DocumentTemplates
$Id: DT_HTML.py,v 1.17 1999/03/22 23:18:56 jim Exp $""" $Id: DT_HTML.py,v 1.18 1999/03/25 20:31:25 jim Exp $"""
from DT_String import String, FileMixin from DT_String import String, FileMixin
import DT_String, regex import DT_String, regex
...@@ -265,7 +265,7 @@ class HTMLFile(FileMixin, HTML): ...@@ -265,7 +265,7 @@ class HTMLFile(FileMixin, HTML):
'Revert to factory defaults' 'Revert to factory defaults'
if self.edited_source: if self.edited_source:
self.edited_source='' self.edited_source=''
self.cooked=self.cook() self._v_cooked=self.cook()
if REQUEST: return self.editConfirmation(self,REQUEST) if REQUEST: return self.editConfirmation(self,REQUEST)
def manage_editForm(self, URL1, REQUEST): def manage_editForm(self, URL1, REQUEST):
...@@ -296,7 +296,7 @@ class HTMLFile(FileMixin, HTML): ...@@ -296,7 +296,7 @@ class HTMLFile(FileMixin, HTML):
if self.edited_source: if self.edited_source:
self.edited_source=data self.edited_source=data
self.cooked=self.cook() self._v_cooked=self.cook()
else: else:
__traceback_info__=self.__class__ __traceback_info__=self.__class__
newHTML=self.__class__() newHTML=self.__class__()
......
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