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

def AttachmentField::AttachmentHandler::AbstractHandler::convertStringToPreview (   self,
  content,
  content_type,
  instance 
) [inherited]

convertStringToPreview(self, content, content_type, instance) => Utility to convert a string to HTML
using the converter stuff.

Reimplemented in AttachmentField::OOAttachment::OOAttachment, and AttachmentField::PortalTransformsAttachment::PortalTransformsAttachment.

Definition at line 257 of file AttachmentHandler.py.

00257                                                                      :
        """
        convertStringToPreview(self, content, content_type, instance) => Utility to convert a string to HTML
        using the converter stuff.
        """
        preview = self._convertString(
            content,
            "<string>",
            self.preview_program,
            self.preview_arguments,
            self.preview_encoding,
            )
        return self._convertOutput(preview, self.preview_format)

    def _convert(self, field, instance, program, arguments, encoding):


Generated by  Doxygen 1.6.0   Back to index