Changes between Version 2 and Version 3 of CookBookValidateImageSize


Ignore:
Timestamp:
02/24/2006 04:12:41 AM (10 years ago)
Author:
anonymous
Comment:

--

Legend:

Unmodified
Added
Removed
Modified
  • CookBookValidateImageSize

    v2 v3  
    1313    im = Image.open(StringIO.StringIO(field_data["content"]))
    1414    if im.size != (100,100):
    15         raise validators.ValidationError, "The image size does not match 100*100 "
     15        raise validators.ValidationError, "The image size does not match 100*100"
    1616}}}
Back to Top