Logo Search packages:      
Sourcecode: zope-attachmentfield version File versions  Download package

def AttachmentField::AttachmentField::AttachmentField::getSize (   self,
  instance 
)

getSize(self, instance) => return file size

Definition at line 185 of file AttachmentField.py.

00185                                :
        """
        getSize(self, instance) => return file size
        """
        if self.isEmpty(instance):
            return 0
        return self.get(instance).get_size()    # This is cached by OFS.File

    def isEmpty(self, instance):


Generated by  Doxygen 1.6.0   Back to index