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

AttachmentField::AttachmentHandler::AbstractHandler Class Reference

Inheritance diagram for AttachmentField::AttachmentHandler::AbstractHandler:

AttachmentField::AudioAttachment::AudioAttachment AttachmentField::AutocadAttachment::AutocadAttachment AttachmentField::CompressedAttachment::CompressedAttachment AttachmentField::DummyAttachment::DummyAttachment AttachmentField::FlashAttachment::FlashAttachment AttachmentField::HTMLAttachment::HTMLAttachment AttachmentField::ImageAttachment::ImageAttachment AttachmentField::MSAccessAttachment::MSAccessAttachment AttachmentField::MSExcelAttachment::MSExcelAttachment AttachmentField::MSPowerpointAttachment::MSPowerpointAttachment AttachmentField::MSProjectAttachment::MSProjectAttachment AttachmentField::MSWordAttachment::MSWordAttachment AttachmentField::OO2Attachment::OO2Attachment AttachmentField::OOAttachment::OOAttachment AttachmentField::PDFAttachment::PDFAttachment AttachmentField::PhotoshopAttachment::PhotoshopAttachment AttachmentField::PortalTransformsAttachment::PortalTransformsAttachment AttachmentField::RTFAttachment::RTFAttachment AttachmentField::TextAttachment::TextAttachment AttachmentField::VideoAttachment::VideoAttachment AttachmentField::VisioAttachment::VisioAttachment

List of all members.


Detailed Description

CODING INFORMATION : If you create additional methods or properties in ZAbstractAttachment that must
be derived for the class to work, put them in the __must_derive__ tuple so that they will be checked
at class registration. This will ensure better coding quality.

Please note that ZAbstractAttachment-dervied objects are instanciated every time a file is uploaded.
So you're guaranteed that the indexed file won't change during the class's lifetime.

You can store additional files inside a ZAA with the addRelatedFile() method.
If you want to get it back, use getRelatedFile() with the file's identifier.

In many methods, a 'field' and 'instance' paramters are passed.
If you're working outside an Archetypes you can pass None as 'field' and 'self' as 'instance' in
most of the methods.

Definition at line 121 of file AttachmentHandler.py.


Public Member Functions

def convertStringToIndex
def convertStringToPreview
def getContentTypes
def getConverterType
def getIconFile
def getIndexableValue
def getIndexArguments
def getIndexEncoding
def getIndexPath
def getPreviewArguments
def getPreviewEncoding
def getPreviewFormat
def getPreviewPath
def getSmallIconFile
def initHandler
def string2unicode
def unicode2string

Static Public Attributes

 content_types = INVALID_VALUE
 converter_type = INVALID_VALUE
 error = False
 icon_file = INVALID_VALUE
 index_arguments = INVALID_VALUE
 index_encoding = INVALID_VALUE
 index_path = INVALID_VALUE
 is_external_conv = INVALID_VALUE
 preview_arguments = INVALID_VALUE
 preview_encoding = INVALID_VALUE
 preview_format = INVALID_VALUE
 preview_path = INVALID_VALUE
 program_found = False
 small_icon_file = INVALID_VALUE

Private Member Functions

def _convert
def _convertString

Static Private Attributes

int __CHECK_INTERFACE__ = 1
tuple __must_derive__

The documentation for this class was generated from the following file:

Generated by  Doxygen 1.6.0   Back to index