diff options
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): |