mirror of
https://github.com/panda3d/panda3d.git
synced 2025-10-14 15:56:23 -04:00
boldly checking in fixes blindly that I can't test from here
This commit is contained in:
parent
0f20f625f3
commit
e7d62baf9b
@ -227,14 +227,9 @@ class ConnectionRepository(
|
|||||||
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)
|
||||||
|
|
||||||
# rhh this seems to fail with new system not sure why ?
|
if type(classDef) != types.ClassType and type(classDef) != types.TypeType:
|
||||||
#print "---classname " +className
|
self.notify.error("Symbol %s is not a class name." % (className))
|
||||||
#print type(classDef)
|
else:
|
||||||
#print types.ClassType
|
|
||||||
#if type(classDef) != types.ClassType:
|
|
||||||
# self.notify.error("Symbol %s is not a class name." % (className))
|
|
||||||
#else:
|
|
||||||
# dclass.setClassDef(classDef)
|
|
||||||
dclass.setClassDef(classDef)
|
dclass.setClassDef(classDef)
|
||||||
|
|
||||||
self.dclassesByName[className] = dclass
|
self.dclassesByName[className] = dclass
|
||||||
|
@ -149,7 +149,7 @@ class ServerRepository:
|
|||||||
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) != types.ClassType and type(classDef) != 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)
|
||||||
|
Loading…
x
Reference in New Issue
Block a user