allow DC structs to inherit from built-in types
This commit is contained in:
parent
d3d22253e5
commit
0f368d25c5
|
|
@ -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)
|
||||
|
|
|
|||
Loading…
Reference in New Issue