class documentation

class MyImage(MyBlob, Image): (source)

View In Hierarchy

Undocumented

Method getHeight Get height of this image.
Method getWidth Get width of this image.
Method toXml Serialize this file to xml-string.
Class Variable __doc__ Undocumented
Class Variable __obj_attrs__ Undocumented
Class Variable __version__ Undocumented
Class Variable __xml_attrs__ Undocumented
Class Variable getHeight__roles__ Undocumented
Class Variable getWidth__roles__ Undocumented
Instance Variable height Undocumented
Instance Variable width Undocumented
Method _getCopy Get copy of this blob.

Inherited from MyBlob:

Method __bobo_traverse__ 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_real_size Returns real size in ZODB.
Method getContentType Returns MIME-type (e.g. image/gif, text/xml).
Method getData Returns data.
Method getDataSizeStr Returns display string for file-size (kB). Deprecated: Use standard.getDataSizeStr(len) instead!
Method getDataURI Undocumented
Method getFilename Returns filename.
Method getHref Returns absolute url.
Method getMediadbfile Returns mediadb-filename.
Method getMimeTypeIconSrc Returns the absolute-url of an icon representing the MIME-type of this MyBlob-object. Deprecated: Use zmscontext.getMimeTypeIconSrc(mt) instead!
Method getObjAttrs Undocumented
Method on_setobjattr Undocumented
Class Variable __call____roles__ Undocumented
Class Variable __class_name__ Undocumented
Class Variable get_real_size__roles__ Undocumented
Class Variable get_size__roles__ MyBlob.get_real_size:
Class Variable getContentType__roles__ Undocumented
Class Variable getData__roles__ Undocumented
Class Variable getDataSizeStr__roles__ Undocumented
Class Variable getDataURI__roles__ Undocumented
Class Variable getFilename__roles__ Undocumented
Class Variable getHref__roles__ Undocumented
Class Variable getMediadbfile__roles__ Undocumented
Class Variable getMimeTypeIconSrc__roles__ Undocumented
Class Variable getObjAttrs__roles__ Undocumented
Class Variable index_html MyBlob.getObjAttrs:
Instance Variable aq_parent Undocumented
Instance Variable data Undocumented
Instance Variable filename Undocumented
Instance Variable mediadbfile Undocumented
Method _createCopy Undocumented
Method _if_modified_since_request_handler Undocumented
Method _range_request_handler Undocumented
def getHeight(self): (source)

Get height of this image.

Returns
intthe height of this image.
def getWidth(self): (source)

Get width of this image.

Returns
intthe width of this image.
def toXml(self, sender=None, base_path='', data2hex=True): (source)

Serialize this file to xml-string.

Parameters
sender:zmsobject.ZMSObject=Nonethe sender-node
base_path:str=''the base-path
data2hex:Bool=Trueconvert data inline to hex, otherwise saved to file in base-path
Returns
strthe xml-string
__doc__: str = (source)

Undocumented

__obj_attrs__: list[str] = (source)

Undocumented

__version__: str = (source)

Undocumented

__xml_attrs__: list[str] = (source)

Undocumented

getHeight__roles__ = (source)

Undocumented

getWidth__roles__ = (source)

Undocumented

Undocumented

Undocumented

def _getCopy(self): (source)

Get copy of this blob.

Returns
_blobfields.MyFilethe copy of this blob.