Browse Source

allow DC structs to inherit from built-in types

Darren Ranalli 20 years ago
parent
commit
0f368d25c5
1 changed files with 1 additions and 1 deletions
  1. 1 1
      direct/src/distributed/ConnectionRepository.py

+ 1 - 1
direct/src/distributed/ConnectionRepository.py

@@ -161,7 +161,7 @@ class ConnectionRepository(DoInterestManager, CConnectionRepository):
                         self.notify.error("Module %s does not define class %s." % (className, className))
                         self.notify.error("Module %s does not define class %s." % (className, className))
                     classDef = getattr(classDef, 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))
                     self.notify.error("Symbol %s is not a class name." % (className))
                 else:
                 else:
                     dclass.setClassDef(classDef)
                     dclass.setClassDef(classDef)