array attributes were potentially not registered

This commit is contained in:
Christophe de Vienne
2011-10-17 16:28:12 +02:00
parent 0befb6d04a
commit 5daf8f8a6e

View File

@@ -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)