class documentation
class MyBlob(object): (source)
Known subclasses: zms._blobfields.MyFile, zms._blobfields.MyImage
Undocumented
| 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 | __class |
Undocumented |
| Class Variable | __doc__ |
Undocumented |
| Class Variable | __version__ |
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 |
Handle HTTP request for blob object (file/image).
This method processes requests for blob objects, handling:
- Visibility and access permission checks
- HTTP caching headers (Last-Modified, If-Modified-Since, ETags)
- Range requests for partial content delivery
- Content-Type and Content-Disposition headers
- MediaDB file retrieval or ZODB data fallback
| Parameters | |
| REQUEST:ZPublisher.HTTPRequest or None | The HTTP request object containing headers and parameters |
| **kw | Additional keyword arguments |
| Returns | |
| bytes or str or MyBlob | Blob data as bytes or empty string, or self if not an HTTP request |
Returns display string for file-size (kB). Deprecated: Use standard.getDataSizeStr(len) instead!
| Returns | |
| string | file-size in kB |
Returns the absolute-url of an icon representing the MIME-type of this MyBlob-object. Deprecated: Use zmscontext.getMimeTypeIconSrc(mt) instead!
| Returns | |
| string | icon url |