Code

Changes between Version 2 and Version 3 of CookBookValidateImageSize


Ignore:
Timestamp:
02/24/06 02:12:41 (8 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}}}