[Zope-Checkins] CVS: Zope/lib/python/OFS - DTMLMethod.py:1.70.2.2

Andreas Jung andreas@zope.com
Mon, 26 Nov 2001 10:24:37 -0500


Update of /cvs-repository/Zope/lib/python/OFS
In directory cvs.zope.org:/tmp/cvs-serv10798/lib/python/OFS

Modified Files:
      Tag: ajung-webdav-debug
	DTMLMethod.py 
Log Message:
added creation of the __etag attribute to solve Word/WebDAV
readonly problem



=== Zope/lib/python/OFS/DTMLMethod.py 1.70.2.1 => 1.70.2.2 ===
         kw['document_id']   =self.getId()
         kw['document_title']=self.title
+        
 
         security=getSecurityManager()
         security.addContext(self)
@@ -325,6 +326,7 @@
         if type(data) is not type(''): data=data.read()
         self.munge(data)
         self.ZCacheable_invalidate()
+        self.http__refreshEtag()
         if REQUEST:
             message="Saved changes."
             return self.manage_main(self,REQUEST,manage_tabs_message=message)
@@ -338,6 +340,7 @@
         if type(file) is not type(''): file=file.read()
         self.munge(file)
         self.ZCacheable_invalidate()
+        self.http__refreshEtag()
         if REQUEST:
             message="Saved changes."
             return self.manage_main(self,REQUEST,manage_tabs_message=message)
@@ -393,6 +396,7 @@
         self._validateProxy(REQUEST)
         self.munge(body)
         self.ZCacheable_invalidate()
+        self.http__refreshEtag()
         RESPONSE.setStatus(204)
         return RESPONSE