class documentation
ZMS file blob class for managing binary and text files.
MyFile extends MyBlob with file-specific functionality including:
File Features:
- Generic binary and text file storage
- Support for documents, archives, code files, etc.
- Content-type detection and management
- File size tracking and reporting
Data Management:
- Inherits blob storage from
MyBlob(ZODB or MediaDB) - XML serialization with content-type attributes
- Support for text-based content (CSS, JavaScript, SVG, etc.)
- HTTP caching and range request handling
Uses OFS.File.File as the underlying Zope file storage mechanism.
| Method | to |
Serialize this file to xml-string. |
| Class Variable | __class |
Undocumented |
| Class Variable | __obj |
Undocumented |
| Class Variable | __roles__ |
Undocumented |
| Class Variable | __version__ |
Undocumented |
| Class Variable | __xml |
Undocumented |
| Method | _get |
Get copy of this blob. |
Inherited from MyBlob:
| Method | __bobo |
Undocumented |
| Method | __call__ |
Handle HTTP request for blob object (file/image). |
| Method | __str__ |
Undocumented |
| Method | equals |
Indicates whether some other MyBlob-object is "equal to" this one. |
| Method | get |
Returns real size in ZODB. |
| Method | get |
Returns MIME-type (e.g. image/gif, text/xml). |
| Method | get |
Returns data. |
| Method | get |
Returns display string for file-size (kB). Deprecated: Use standard.getDataSizeStr(len) instead! |
| Method | get |
Undocumented |
| Method | get |
Returns filename. |
| Method | get |
Returns absolute url. |
| Method | get |
Returns mediadb-filename. |
| Method | get |
Returns the absolute-url of an icon representing the MIME-type of this MyBlob-object. Deprecated: Use zmscontext.getMimeTypeIconSrc(mt) instead! |
| Method | get |
Undocumented |
| Method | on |
Undocumented |
| Class Variable | __call |
Undocumented |
| Class Variable | get |
Undocumented |
| Class Variable | get |
MyBlob.get_real_size: |
| Class Variable | get |
Undocumented |
| Class Variable | get |
Undocumented |
| Class Variable | get |
Undocumented |
| Class Variable | get |
Undocumented |
| Class Variable | get |
Undocumented |
| Class Variable | get |
Undocumented |
| Class Variable | get |
Undocumented |
| Class Variable | get |
Undocumented |
| Class Variable | get |
Undocumented |
| Class Variable | index |
MyBlob.getObjAttrs: |
| Instance Variable | aq |
Undocumented |
| Instance Variable | data |
Undocumented |
| Instance Variable | filename |
Undocumented |
| Instance Variable | mediadbfile |
Undocumented |
| Method | _create |
Undocumented |
| Method | _if |
Undocumented |
| Method | _range |
Undocumented |