diff options
author | RaNaN <Mast3rRaNaN@hotmail.de> | 2011-07-12 23:42:11 +0200 |
---|---|---|
committer | RaNaN <Mast3rRaNaN@hotmail.de> | 2011-07-12 23:42:11 +0200 |
commit | c52ee8392501ee916d85fd9da75aa08a8f014493 (patch) | |
tree | 1cd802f64a1ffe0173473fd1f044e014bee59fff /module/web/utils.py | |
parent | changed version strings (diff) | |
download | pyload-c52ee8392501ee916d85fd9da75aa08a8f014493.tar.xz |
removed server_methods, please test everything entirely
Diffstat (limited to 'module/web/utils.py')
-rw-r--r-- | module/web/utils.py | 6 |
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): |