Fix registering of class inheriting from an already registerd class

This commit is contained in:
Christophe de Vienne
2011-11-08 13:03:34 +01:00
parent a0f2c5db5f
commit 19e5df51d8

View File

@@ -84,7 +84,8 @@ Unset = UnsetType()
def iscomplex(datatype):
return hasattr(datatype, '_wsme_attributes')
return inspect.isclass(datatype) \
and '_wsme_attributes' in datatype.__dict__
def isarray(datatype):