Commit 3d9f93f6 authored by Brian Lloyd's avatar Brian Lloyd

fix 1178 (ftp get)

parent 69798eb8
...@@ -12,7 +12,7 @@ ...@@ -12,7 +12,7 @@
############################################################################## ##############################################################################
"""Image object""" """Image object"""
__version__='$Revision: 1.148 $'[11:-2] __version__='$Revision: 1.149 $'[11:-2]
import Globals, struct import Globals, struct
from OFS.content_types import guess_content_type from OFS.content_types import guess_content_type
...@@ -558,7 +558,9 @@ class File(Persistent, Implicit, PropertyManager, ...@@ -558,7 +558,9 @@ class File(Persistent, Implicit, PropertyManager,
def __str__(self): return str(self.data) def __str__(self): return str(self.data)
def __len__(self): return 1 def __len__(self): return 1
manage_FTPget=index_html def manage_FTPget(self):
"""Return body for ftp."""
return str(self.data)
manage_addImageForm=DTMLFile('dtml/imageAdd',globals(), manage_addImageForm=DTMLFile('dtml/imageAdd',globals(),
......
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