l.s.f.IBaseImageUpload(IBytes) : interface documentation

Part of lp.services.fields View In Hierarchy

Marker interface for ImageUpload fields.
Tuple dimensions A two-tuple with the maximum width and height (in pixels) of this image.
Int max_size The maximum size (in bytes) of this image.
TextLine default_image_resource The URL of the zope3 resource of the default image that should be used. Something of the form /@@/team-mugshot
Method getCurrentImage Return the value of the field for the object bound to it.
dimensions =
A two-tuple with the maximum width and height (in pixels) of this image.
max_size =
The maximum size (in bytes) of this image.
default_image_resource =
The URL of the zope3 resource of the default image that should be used. Something of the form /@@/team-mugshot
def getCurrentImage():
Return the value of the field for the object bound to it.

Raise FieldNotBoundError if the field is not bound to any object.

API Documentation for Launchpad, generated by pydoctor at 2022-06-16 00:00:12.