allow DC structs to inherit from built-in types

This commit is contained in:
Darren Ranalli 2005-05-19 21:43:43 +00:00
parent d3d22253e5
commit 0f368d25c5

View File

@ -161,7 +161,7 @@ class ConnectionRepository(DoInterestManager, CConnectionRepository):
self.notify.error("Module %s does not define class %s." % (className, className))
classDef = getattr(classDef, className)
if type(classDef) != types.ClassType:
if type(classDef) not in (types.ClassType, types.TypeType):
self.notify.error("Symbol %s is not a class name." % (className))
else:
dclass.setClassDef(classDef)