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

AttachmentField::AttachmentField::AttachmentField Class Reference

List of all members.

Detailed Description

A base class to handle file fields. This is based on Archetypes.
When the file is uploaded, it's stored, as the File field, as a File class.

See FileField.set() :

    value = File(self.getName(), '', value, mimetype)
    setattr(value, 'filename', f_name or self.getName())
    ObjectField.set(self, instance, value, **kwargs)

Definition at line 104 of file AttachmentField.py.

Public Member Functions

def get
def getFilename
def getIcon
def getIndexableValue
def getPreview
def getSize
def getSmallIcon
def guessMimeTypeFromContent
def isEmpty
def isIndexed
def isMultiValued
def isPreviewAvailable
def set

Static Public Attributes

tuple security = ClassSecurityInfo()

Private Member Functions

def _getHandler
def _logException
def _reset

Static Private Attributes

tuple __implements__ = (Field.FileField.__implements__, IAttachmentField)
tuple _properties = Field.FileField._properties.copy()

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

Generated by  Doxygen 1.6.0   Back to index