Bläddra i källkod

drose: accept HumanDNA instead of just HumanDNAAI

Asad M. Zaman 21 år sedan
förälder
incheckning
8770751d27
1 ändrade filer med 6 tillägg och 0 borttagningar
  1. 6 0
      direct/src/distributed/ConnectionRepository.py

+ 6 - 0
direct/src/distributed/ConnectionRepository.py

@@ -121,6 +121,12 @@ class ConnectionRepository(DoInterestManager, CConnectionRepository):
             if classDef is None and self.dcSuffix == 'UD': #HACK:
             if classDef is None and self.dcSuffix == 'UD': #HACK:
                 className = dclass.getName() + 'AI'
                 className = dclass.getName() + 'AI'
                 classDef = dcImports.get(className)
                 classDef = dcImports.get(className)
+
+            # Also try it without the dcSuffix.
+            if classDef == None:
+                className = dclass.getName()
+                classDef = dcImports.get(className)
+                
             if classDef is None:
             if classDef is None:
                 self.notify.info("No class definition for %s." % (className))
                 self.notify.info("No class definition for %s." % (className))
             else:
             else: