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 | __xml |
Undocumented |
| Method | _get |
Get copy of this blob. |
Inherited from MyBlob:
| Method | __bobo |
Return the blob itself during traversal. |
| Method | __call__ |
Handle HTTP request for blob object (file/image). |
| Method | __str__ |
Undocumented |
| Method | equals |
Indicate whether another blob 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 |
Return the blob payload as a data URI. |
| Method | get |
Returns filename. |
| Method | get |
Return the absolute URL for this blob. |
| 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 |
Return object attribute definitions for this blob. |
| Method | on |
Persist blob data to MediaDB and detach acquisition wrappers when needed. |
| Class Variable | __call |
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 | get |
Undocumented |
| Class Variable | get |
Undocumented |
| Class Variable | get |
Undocumented |
| Class Variable | index |
Undocumented |
| Instance Variable | aq |
Undocumented |
| Instance Variable | data |
Undocumented |
| Instance Variable | filename |
Undocumented |
| Instance Variable | mediadbfile |
Undocumented |
| Method | _create |
Create a copy of the blob bound to a new acquisition parent. |
| Method | _if |
Undocumented |
| Method | _range |
Undocumented |