[svn] Add: new generic object list template object_list.html, and convenience filter named "link" for making links from objects, and make expeditions list page using those two. Also, fixed survey parsing in databaseReset.py

This commit is contained in:
substantialnoninfringinguser
2009-05-15 03:29:19 +01:00
parent 8538ef27a1
commit 5f93301493
6 changed files with 40 additions and 19 deletions

View File

@@ -3,20 +3,19 @@ from imagekit import processors
class ResizeThumb(processors.Resize):
width = 100
height = 75
crop = True
crop = False
class ResizeDisplay(processors.Resize):
width = 600
class EnhanceThumb(processors.Adjustment):
contrast = 1.2
sharpness = 1.1
#class EnhanceThumb(processors.Adjustment):
#contrast = 1.2
#sharpness = 2
class Thumbnail(ImageSpec):
access_as = 'thumbnail_image'
pre_cache = True
processors = [ResizeThumb, EnhanceThumb]
processors = [ResizeThumb]
class Display(ImageSpec):
increment_count = True