Fixed a typeclass call.

This commit is contained in:
Griatch 2014-12-22 22:14:23 +01:00
parent c6c91c7a0b
commit 9321573c23

View file

@ -1263,7 +1263,7 @@ class TypedObject(SharedMemoryModel):
_SA(self, "typeclass_path", new_typeclass.strip()) _SA(self, "typeclass_path", new_typeclass.strip())
# this will automatically use a default class if # this will automatically use a default class if
# there is an error with the given typeclass. # there is an error with the given typeclass.
new_typeclass = self.typeclass new_typeclass = self
if self.typeclass_path != new_typeclass.path and no_default: if self.typeclass_path != new_typeclass.path and no_default:
# something went wrong; the default was loaded instead, # something went wrong; the default was loaded instead,
# and we don't allow that; instead we return to previous. # and we don't allow that; instead we return to previous.