[Zope-CVS] CVS: Products/ExternalEditor - CHANGES.txt:1.3 ExternalEditor.py:1.2
Casey Duncan
casey@zope.com
Thu, 23 May 2002 10:27:37 -0400
Update of /cvs-repository/Products/ExternalEditor
In directory cvs.zope.org:/tmp/cvs-serv7558
Modified Files:
CHANGES.txt ExternalEditor.py
Log Message:
Added support for CMF Docs. Added cache control headers to prevent caching
=== Products/ExternalEditor/CHANGES.txt 1.2 => 1.3 ===
- Eliminated spurious "Editor did not launch" errors on short sessions
- os when other errors occurred.
+ - Added caching headers to prevent client-side caching of edit data.
+ Thanks to Gabriel Genellina for pointing this out.
- 5/16/02 - 0.2 Release
-
- Fixed product uninstallation bug
-
- 5/15/02 - 0.1
-
- Initial release
+ - Added improved support for editing CMF documents
+
+ - Eliminated spurious "Editor did not launch" errors on short sessions
+ os when other errors occurred.
+
+ 5/16/02 - 0.2 Release
+
+ - Fixed product uninstallation bug
+
+ 5/15/02 - 0.1
+
+ - Initial release
=== Products/ExternalEditor/ExternalEditor.py 1.1.1.1 => 1.2 ===
elif hasattr(ob, 'manage_FTPget'):
r.append(ob.manage_FTPget(REQUEST, RESPONSE))
+ elif hasattr(ob, 'EditableBody'):
+ r.append(ob.EditableBody())
elif hasattr(ob, 'read'):
r.append(ob.read())
else:
@@ -60,6 +62,8 @@
raise 'BadRequest', 'Object does not support external editing'
RESPONSE.setHeader('Content-Type', 'application/x-zope-edit')
+ RESPONSE.setHeader('Cache-Control', 'no-cache')
+ RESPONSE.setHeader('Pragma', 'no-cache')
return '\n'.join(r)