Mercurial > libervia-backend
comparison sat/core/constants.py @ 3066:2cc2f65379f7
core: added imageCheck and imageResize methods:
imageCheck will give a report on image, notably it will tell if it's too big and needs to
be resized before a transfer.
imageResize will create a new image with the requested size and return a path to it.
author | Goffi <goffi@goffi.org> |
---|---|
date | Tue, 29 Oct 2019 20:38:39 +0100 |
parents | fee60f17ebac |
children | 4f8bdf50593f |
comparison
equal
deleted
inserted
replaced
3065:f8e3789912d0 | 3066:2cc2f65379f7 |
---|---|
359 ORDER_BY_MODIFICATION = 'modification' | 359 ORDER_BY_MODIFICATION = 'modification' |
360 | 360 |
361 # internationalisation | 361 # internationalisation |
362 DEFAULT_LOCALE = "en_GB" | 362 DEFAULT_LOCALE = "en_GB" |
363 | 363 |
364 # Contexts | |
365 # context indicate how things are done (e.g. to who/what a file is transfered) | |
366 # this is useful to make some decision (e.g. image size) | |
367 | |
368 # something is done in instant messaging | |
369 CONTEXT_CHAT = "CONTEXT_CHAT" | |
370 | |
364 ## Misc ## | 371 ## Misc ## |
365 SAVEFILE_DATABASE = APP_NAME_FILE + ".db" | 372 SAVEFILE_DATABASE = APP_NAME_FILE + ".db" |
366 IQ_SET = '/iq[@type="set"]' | 373 IQ_SET = '/iq[@type="set"]' |
367 ENV_PREFIX = "SAT_" # Prefix used for environment variables | 374 ENV_PREFIX = "SAT_" # Prefix used for environment variables |
368 IGNORE = "ignore" | 375 IGNORE = "ignore" |