Code

Changes between Version 2 and Version 3 of CookBookValidateImageWeight


Ignore:
Timestamp:
02/27/06 02:56:30 (8 years ago)
Author:
anonymous
Comment:

--

Legend:

Unmodified
Added
Removed
Modified
  • CookBookValidateImageWeight

    v2 v3  
    88Here we check that the image under 100 kb. 
    99{{{ 
     10#!python 
    1011def isValideSize(field_data, all_data): 
    1112        if len(field_data["content"]) > 100000: # 100,000 bytes