From 0fd4d502794dab160d9fab4e514bb2dd21280697 Mon Sep 17 00:00:00 2001 From: Christophe de Vienne Date: Sun, 14 Apr 2013 20:37:36 +0200 Subject: [PATCH] Explicitely ignore the routines when scanning a class --- wsme/types.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/wsme/types.py b/wsme/types.py index 58264c3..ebee9d0 100644 --- a/wsme/types.py +++ b/wsme/types.py @@ -435,6 +435,8 @@ def inspect_class(class_): for name, attr in inspect.getmembers(class_, iswsattr): if name.startswith('_'): continue + if inspect.isroutine(attr): + continue if isinstance(attr, wsattr): attrdef = attr