Changes between Version 2 and Version 3 of CookBookValidateImageSize
- Timestamp:
- Feb 24, 2006, 4:12:41 AM (19 years ago)
Legend:
- Unmodified
- Added
- Removed
- Modified
-
CookBookValidateImageSize
v2 v3 13 13 im = Image.open(StringIO.StringIO(field_data["content"])) 14 14 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" 16 16 }}}