summaryrefslogtreecommitdiffstats
path: root/module/web/utils.py
diff options
context:
space:
mode:
authorGravatar RaNaN <Mast3rRaNaN@hotmail.de> 2011-07-12 23:42:11 +0200
committerGravatar RaNaN <Mast3rRaNaN@hotmail.de> 2011-07-12 23:42:11 +0200
commitc52ee8392501ee916d85fd9da75aa08a8f014493 (patch)
tree1cd802f64a1ffe0173473fd1f044e014bee59fff /module/web/utils.py
parentchanged version strings (diff)
downloadpyload-c52ee8392501ee916d85fd9da75aa08a8f014493.tar.xz
removed server_methods, please test everything entirely
Diffstat (limited to 'module/web/utils.py')
-rw-r--r--module/web/utils.py6
1 files changed, 6 insertions, 0 deletions
diff --git a/module/web/utils.py b/module/web/utils.py
index 81baa4fd2..1455c3c01 100644
--- a/module/web/utils.py
+++ b/module/web/utils.py
@@ -109,6 +109,12 @@ def login_required(perm=None):
return _dec
+def toDict(obj):
+ ret = {}
+ for att in obj.__slots__:
+ ret[att] = getattr(obj, att)
+ return ret
+
class CherryPyWSGI(ServerAdapter):
def run(self, handler):