diff 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
line wrap: on
line diff
--- a/sat/core/constants.py	Tue Oct 29 20:24:29 2019 +0100
+++ b/sat/core/constants.py	Tue Oct 29 20:38:39 2019 +0100
@@ -361,6 +361,13 @@
     # internationalisation
     DEFAULT_LOCALE = "en_GB"
 
+    # Contexts
+    # context indicate how things are done (e.g. to who/what a file is transfered)
+    # this is useful to make some decision (e.g. image size)
+
+    # something is done in instant messaging
+    CONTEXT_CHAT = "CONTEXT_CHAT"
+
     ## Misc ##
     SAVEFILE_DATABASE = APP_NAME_FILE + ".db"
     IQ_SET = '/iq[@type="set"]'