Changes between Version 2 and Version 3 of CookBookValidateImageSize


Ignore:
Timestamp:
Feb 24, 2006, 4:12:41 AM (19 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