[Zope-CVS] CVS: Products/ExternalEditor - CHANGES.txt:1.59 ExternalEditor.py:1.26

Chris McDonough chrism at plope.com
Wed Nov 10 22:46:18 EST 2004


Update of /cvs-repository/Products/ExternalEditor
In directory cvs.zope.org:/tmp/cvs-serv10948

Modified Files:
	CHANGES.txt ExternalEditor.py 
Log Message:
Add EE detection in IE via OCX, add title header to list of headers returned to the client.


=== Products/ExternalEditor/CHANGES.txt 1.58 => 1.59 ===
--- Products/ExternalEditor/CHANGES.txt:1.58	Tue Aug 31 14:06:35 2004
+++ Products/ExternalEditor/CHANGES.txt	Wed Nov 10 22:46:17 2004
@@ -2,6 +2,15 @@
 
   Next Release
 
+    - The "title" attribute of the object being externally edited is
+      now available within the set of headers returned by EE to the
+      zopeedit client.
+
+    - Detecting whether the client has External Editor installed from
+      within IE using JavaScript or VBScript is now possible, assuming
+      that the client software is installed via the InnoSetup
+      installer.  See "win32/ocx.txt" for more info.
+
     - External Editor now compatible with objects that return a
       "filestream iterator" in Zope 2.7.1+. (if upgrading: this fix
       does not require an update to EE client, just the EE Zope


=== Products/ExternalEditor/ExternalEditor.py 1.25 => 1.26 ===
--- Products/ExternalEditor/ExternalEditor.py:1.25	Tue Aug 31 14:06:35 2004
+++ Products/ExternalEditor/ExternalEditor.py	Wed Nov 10 22:46:17 2004
@@ -81,12 +81,18 @@
         r.append('url:%s' % ob.absolute_url())
         r.append('meta_type:%s' % ob.meta_type)
         
+        title = getattr(Acquisition.aq_base(ob), 'title', None)
+        if title is not None:
+            if callable(title):
+                title = title()
+            r.append('title:%s' % title)
+                
         if hasattr(Acquisition.aq_base(ob), 'content_type'):
             if callable(ob.content_type):
                 r.append('content_type:%s' % ob.content_type())
             else:
                 r.append('content_type:%s' % ob.content_type)
-                
+
         if REQUEST._auth:
             if REQUEST._auth[-1] == '\n':
                 auth = REQUEST._auth[:-1]



More information about the Zope-CVS mailing list