Decoupled page transformation interface, added default transformation support
This commit is contained in:
@@ -3,3 +3,14 @@ import tempfile
|
||||
from common.conf import settings as common_settings
|
||||
|
||||
TEMPORARY_DIRECTORY = common_settings.TEMPORARY_DIRECTORY if common_settings.TEMPORARY_DIRECTORY else tempfile.mkdtemp()
|
||||
|
||||
#ugettext = lambda s: s
|
||||
|
||||
#TRANFORMATION_ROTATE = (u'-rotate %(degrees)d', ugettext(u'Rotation, arguments: degrees'))
|
||||
TRANFORMATION_CHOICES = {
|
||||
'rotate':'-rotate %(degrees)d'
|
||||
}
|
||||
|
||||
#getattr(settings, 'CONVERTER_TRANSFORMATION_LIST', [
|
||||
# TRANFORMATION_ROTATE,
|
||||
# ])
|
||||
|
||||
Reference in New Issue
Block a user