From 5daf8f8a6edd5143e0e9ea05ce64ee3070f5c1d6 Mon Sep 17 00:00:00 2001 From: Christophe de Vienne Date: Mon, 17 Oct 2011 16:28:12 +0200 Subject: [PATCH] array attributes were potentially not registered --- wsme/types.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/wsme/types.py b/wsme/types.py index 57b6e88..f3865f4 100644 --- a/wsme/types.py +++ b/wsme/types.py @@ -113,8 +113,8 @@ def inspect_class(class_): elif isinstance(attr, wsproperty): attrdef = attr else: - if attr not in native_types and inspect.isclass(attr): - print name, attr + if attr not in native_types and ( + inspect.isclass(attr) or isinstance(attr, list)): register_type(attr) attrdef = wsattr(attr)