summary refs log tree commit diff
path: root/synapse/push/rulekinds.py
diff options
context:
space:
mode:
authorKegan Dougal <kegan@matrix.org>2015-02-05 15:32:45 +0000
committerKegan Dougal <kegan@matrix.org>2015-02-05 15:32:45 +0000
commitfc8bcc809d91c461eacb9ce466adbba29d814042 (patch)
treee85b9889a30926eef8f6a58744529431e3caea65 /synapse/push/rulekinds.py
parentFix unit tests. (diff)
parentGive server default rules the 'default' attribute and fix various brokenness. (diff)
downloadsynapse-fc8bcc809d91c461eacb9ce466adbba29d814042.tar.xz
Merge branch 'develop' into application-services
Diffstat (limited to 'synapse/push/rulekinds.py')
-rw-r--r--synapse/push/rulekinds.py8
1 files changed, 8 insertions, 0 deletions
diff --git a/synapse/push/rulekinds.py b/synapse/push/rulekinds.py
new file mode 100644
index 0000000000..763bdee58e
--- /dev/null
+++ b/synapse/push/rulekinds.py
@@ -0,0 +1,8 @@
+PRIORITY_CLASS_MAP = {
+        'underride': 1,
+        'sender': 2,
+        'room': 3,
+        'content': 4,
+        'override': 5,
+    }
+PRIORITY_CLASS_INVERSE_MAP = {v: k for k, v in PRIORITY_CLASS_MAP.items()}