Part of lp.services.fields View In Hierarchy
Known subclasses: lp.services.fields.IconImageUpload, lp.services.fields.LogoImageUpload, lp.services.fields.MugshotImageUpload, lp.services.fields.tests.test_fields.TestBaseImageUpload.ExampleImageUpload
Base class for ImageUpload fields. Any subclass of this one must be used in conjunction with ImageUploadWidget and must define the following attributes: - dimensions: the exact dimensions of the image; a tuple of the form (width, height). - max_size: the maximum size of the image, in bytes.
Method | __init__ | Undocumented |
Method | getCurrentImage | Undocumented |
Method | set | Undocumented |
Method | _valid_image | Check that the given image is under the given constraints. |
Method | _validate | Undocumented |