Changeset 3bccf0f
- Timestamp:
- Jul 7, 2010, 6:32:25 AM (15 years ago)
- Branches:
- master, fysm-4-1, space-access, stable, stage, test-hooks
- Children:
- b4e8cef
- Parents:
- 07aa6da
- git-author:
- Alex Dehnert <adehnert@…> (07/07/10 06:32:25)
- git-committer:
- Alex Dehnert <adehnert@…> (07/07/10 06:32:25)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
asadb/forms/fysm-lint.py
r07aa6da r3bccf0f 40 40 good_ext = ['png', 'jpg', 'jpeg', 'gif', ] 41 41 ext = image.name.rsplit('.')[-1] 42 convert_msg = 'You should convert it to a PNG (or possibly GIF, if it is essentially all text; or JPEG, if it is mostly images).' ,42 convert_msg = 'You should convert it to a PNG (or possibly GIF, if it is essentially all text; or JPEG, if it is mostly images).' 43 43 if not image.name: 44 44 return { … … 50 50 return { 51 51 'heading': 'Undesirable TIFF file submitted for %s' % (label, ), 52 'body': 'You submitted a TIFF file for your %s. TIFF files are generally large and poorly supported by browsers. ' % (label,) + convert_msg,52 'body': ('You submitted a TIFF file for your %s. TIFF files are generally large and poorly supported by browsers. ' % (label, )) + convert_msg, 53 53 'level': LEVEL_HIGH, 54 54 } … … 56 56 return { 57 57 'heading': 'Undesirable BMP file submitted for %s' % (label, ), 58 'body': 'You submitted a BMP file for your %s. BMP files are generally extremely large. ' % (label,) + convert_msg,58 'body': ('You submitted a BMP file for your %s. BMP files are generally extremely large. ' % (label, )) + convert_msg, 59 59 'level': LEVEL_HIGH, 60 60 }
Note: See TracChangeset
for help on using the changeset viewer.