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

def AttachmentField::PortalTransformsAttachment::PortalTransformsAttachment::getPreview (   self,
  field,
  instance 
)

getPreview(self, field, instance) => string or None

Return the HTML preview (generating it if it's not already done) for this attachement.
If the attachment is not previewable, or if there's a problem in the preview,
return None.

Definition at line 152 of file PortalTransformsAttachment.py.

00152                                          :
        """
        getPreview(self, field, instance) => string or None

        Return the HTML preview (generating it if it's not already done) for this attachement.
        If the attachment is not previewable, or if there's a problem in the preview,
        return None.
        """
        content = field.get(instance)
        content_type = field.getContentType(instance)
        return self.convertStringToPreview(content, content_type, instance)

    def convertStringToIndex(self, content, content_type, instance):


Generated by  Doxygen 1.6.0   Back to index