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

def AttachmentField::PortalTransformsAttachment::PortalTransformsAttachment::getSmallPreview (   self  ) 

getSmallPreview(self,) => string or None

Default behaviour : if the preview string is shorter than MAX_PREVIEW_SIZE, return it, else return None.
You can override this, of course.

Definition at line 227 of file PortalTransformsAttachment.py.

00227                               :
        """
        getSmallPreview(self,) => string or None

        Default behaviour : if the preview string is shorter than MAX_PREVIEW_SIZE, return it, else return None.
        You can override this, of course.
        """
        ret = self.getPreview()
        if not ret:
            return None
        if len(ret) < MAX_PREVIEW_SIZE:
            return ret
        return None


    #                                                                                   #
    #                                   Utility methods                                 #
    #                                                                                   #

    def getPortalTransforms(self, field, instance, ):


Generated by  Doxygen 1.6.0   Back to index