boldly checking in fixes blindly that I can't test from here

This commit is contained in:
David Rose 2006-06-15 13:14:52 +00:00
parent 0f20f625f3
commit e7d62baf9b
2 changed files with 5 additions and 10 deletions

View File

@ -227,14 +227,9 @@ class ConnectionRepository(
self.notify.error("Module %s does not define class %s." % (className, className))
classDef = getattr(classDef, className)
# rhh this seems to fail with new system not sure why ?
#print "---classname " +className
#print type(classDef)
#print types.ClassType
#if type(classDef) != types.ClassType:
# self.notify.error("Symbol %s is not a class name." % (className))
#else:
# dclass.setClassDef(classDef)
if type(classDef) != types.ClassType and type(classDef) != types.TypeType:
self.notify.error("Symbol %s is not a class name." % (className))
else:
dclass.setClassDef(classDef)
self.dclassesByName[className] = dclass

View File

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