Commit 9802bb20 authored by 's avatar

Added back getSize - people are still using it.

parent 34a9c58e
......@@ -84,7 +84,7 @@
##############################################################################
"""DTML Method objects."""
__version__='$Revision: 1.47 $'[11:-2]
__version__='$Revision: 1.48 $'[11:-2]
import History
from Globals import HTML, HTMLFile, MessageDialog
......@@ -182,7 +182,10 @@ class DTMLMethod(cDocument, HTML, Acquisition.Implicit, RoleManager,
def get_size(self):
return len(self.raw)
# deprecated; use get_size!
getSize=get_size
def validate(self, inst, parent, name, value, md):
return getSecurityManager().validate(inst, parent, name, value)
......
......@@ -84,7 +84,7 @@
##############################################################################
"""Image object"""
__version__='$Revision: 1.105 $'[11:-2]
__version__='$Revision: 1.106 $'[11:-2]
import Globals, string, struct, content_types
from OFS.content_types import guess_content_type
......@@ -370,8 +370,10 @@ class File(Persistent,Implicit,PropertyManager,
size=self.size
if size is None: size=len(self.data)
return size
# deprecated; use get_size!
getSize=get_size
def getContentType(self):
"""Get the content type of a file or image.
......
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