Changeset 2122
- Timestamp:
- 18 Aug 2007, 20:05:03 (17 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
WAeUP_SRP/trunk/Widgets.py
r2120 r2122 1526 1526 height = '' 1527 1527 width = '' 1528 1528 1529 1529 else: 1530 1530 image = open(file_path) … … 1609 1609 """ 1610 1610 #import pdb; pdb.set_trace() 1611 logger = logging.getLogger('Widgets.NoZodbImageWidget.validate') 1611 1612 datamodel = datastructure.getDataModel() 1612 1613 field_id = self.fields[0] … … 1656 1657 max_size_str = self.getHumanReadableSize(self.size_max) 1657 1658 err = 'This file is too big, the allowed max size is ${max_size}' 1659 logger.info('%s tried to upload picture with size %dk' %(datastructure['reg_no'],int(size)/1000) ) 1658 1660 err_mapping = {'max_size': max_size_str} 1659 1661 return self.validateError(err, err_mapping, datastructure)
Note: See TracChangeset for help on using the changeset viewer.