[Zope-CVS] CVS: Products/ExternalEditor - ExternalEditor.py:1.9
Tres Seaver
tseaver@zope.com
Thu, 20 Jun 2002 18:23:56 -0400
Update of /cvs-repository/Products/ExternalEditor
In directory cvs.zope.org:/tmp/cvs-serv30168
Modified Files:
ExternalEditor.py
Log Message:
- Image.manage_FTPget needs REQUEST,RESPONSE (ouch!)
=== Products/ExternalEditor/ExternalEditor.py 1.8 => 1.9 ===
if hasattr(ob, 'manage_FTPget'):
- r.append(ob.manage_FTPget())
+ try:
+ r.append(ob.manage_FTPget())
+ except TypeError: # some need the R/R pair!
+ r.append(ob.manage_FTPget(REQUEST, RESPONSE))
elif hasattr(ob, 'EditableBody'):
r.append(ob.EditableBody())
elif hasattr(ob, 'document_src'):