resolve_type now always returns regular datatypes, never weak refs. Generally speaking weakrefs should remain inside the registry.

This commit is contained in:
Christophe de Vienne 2012-06-29 18:02:42 +02:00
parent d1d36e66bc
commit 72f813fa6e

View File

@ -457,7 +457,7 @@ class Registry(object):
def resolve_type(self, type_):
if isinstance(type_, six.string_types):
return weakref.ref(self.lookup(type_))
return self.lookup(type_)
if isinstance(type_, list):
type_ = ArrayType(type_[0])
if isinstance(type_, dict):