summaryrefslogtreecommitdiffstats
path: root/deluge/ui/web/auth.py
diff options
context:
space:
mode:
authorDamien Churchill <damoc@gmail.com>2009-03-12 18:57:35 +0000
committerDamien Churchill <damoc@gmail.com>2009-03-12 18:57:35 +0000
commit0ac64da5c67209ba6c7b8870b1c6e42e6534b22b (patch)
tree91be97d6717fd01b370b46fa77611809cf73cba3 /deluge/ui/web/auth.py
parent344446a626b159eb9b5e3a0942f76487baf6cbf4 (diff)
downloaddeluge-0ac64da5c67209ba6c7b8870b1c6e42e6534b22b.tar.gz
deluge-0ac64da5c67209ba6c7b8870b1c6e42e6534b22b.tar.bz2
deluge-0ac64da5c67209ba6c7b8870b1c6e42e6534b22b.zip
move the json resource into its own module
split the json-rpc methods and the rpc server into seperate classes make the json-rpc server a component to allow for extension
Diffstat (limited to 'deluge/ui/web/auth.py')
-rw-r--r--deluge/ui/web/auth.py30
1 files changed, 30 insertions, 0 deletions
diff --git a/deluge/ui/web/auth.py b/deluge/ui/web/auth.py
new file mode 100644
index 000000000..6c5eaa460
--- /dev/null
+++ b/deluge/ui/web/auth.py
@@ -0,0 +1,30 @@
+#
+# deluge/ui/web/auth.py
+#
+# Copyright (C) 2009 Damien Churchill <damoxc@gmail.com>
+#
+# Deluge is free software.
+#
+# You may redistribute it and/or modify it under the terms of the
+# GNU General Public License, as published by the Free Software
+# Foundation; either version 3 of the License, or (at your option)
+# any later version.
+#
+# deluge is distributed in the hope that it will be useful,
+# but WITHOUT ANY WARRANTY; without even the implied warranty of
+# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
+# See the GNU General Public License for more details.
+#
+# You should have received a copy of the GNU General Public License
+# along with deluge. If not, write to:
+# The Free Software Foundation, Inc.,
+# 51 Franklin Street, Fifth Floor
+# Boston, MA 02110-1301, USA.
+#
+
+AUTH_LEVEL_NONE = 0
+AUTH_LEVEL_READONLY = 1
+AUTH_LEVEL_NORMAL = 5
+AUTH_LEVEL_ADMIN = 10
+
+AUTH_LEVEL_DEFAULT = AUTH_LEVEL_NORMAL \ No newline at end of file