comparison src/core/constants.py @ 2132:c0577837680a

core: replaced SkipHistory exception by a key in mess_data: SkipHistory was skipping all remaining triggers just to skip history, which is not the intented behaviour. Now history can be skipped by setting mess_data[u'history'] = C.HISTORY_SKIP, this way we won't skip importants triggers. When history is skipped, mess_data[u'extra'][u'history'] will be set to C.HISTORY_SKIP for frontends, so they can inform user that the message is not stored locally.
author Goffi <goffi@goffi.org>
date Sun, 05 Feb 2017 14:55:21 +0100
parents 8717e9cc95c0
children 1d3f73e065e1
comparison
equal deleted inserted replaced
2131:628c1c95f442 2132:c0577837680a
35 APP_URL = u'http://salut-a-toi.org' 35 APP_URL = u'http://salut-a-toi.org'
36 36
37 37
38 ## Runtime ## 38 ## Runtime ##
39 PLUGIN_EXT = "py" 39 PLUGIN_EXT = "py"
40 HISTORY_SKIP = u'skip'
40 41
41 ## Main config ## 42 ## Main config ##
42 DEFAULT_BRIDGE = 'dbus' 43 DEFAULT_BRIDGE = 'dbus'
43 44
44 45