django-imagekit/imagekit/options.py

17 lines
305 B
Python
Raw Normal View History

2009-01-04 18:42:25 +00:00
# Imagekit options
import os
import os.path
2009-12-19 16:01:54 +00:00
2009-01-04 18:42:25 +00:00
class Options(object):
""" Class handling per-model imagekit options
"""
2009-01-08 21:11:15 +00:00
preprocessor_spec = None
2009-01-04 18:42:25 +00:00
save_count_as = None
2009-12-19 16:01:54 +00:00
def __init__(self, opts):
2009-01-04 18:42:25 +00:00
for key, value in opts.__dict__.iteritems():
setattr(self, key, value)