Browse Source

accept HumanDNA instead of HumanDNAAI

David Rose 21 years ago
parent
commit
497d3b2610
1 changed files with 5 additions and 0 deletions
  1. 5 0
      direct/src/distributed/ServerRepository.py

+ 5 - 0
direct/src/distributed/ServerRepository.py

@@ -141,6 +141,11 @@ class ServerRepository:
             # Does the class have a definition defined in the newly
             # Does the class have a definition defined in the newly
             # imported namespace?
             # imported namespace?
             classDef = dcImports.get(className)
             classDef = dcImports.get(className)
+
+            # Also try it without the dcSuffix.
+            if classDef == None:
+                classDef = dcImports.get(dcClass.getName())
+            
             if classDef == None:
             if classDef == None:
                 self.notify.info("No class definition for %s." % (className))
                 self.notify.info("No class definition for %s." % (className))
             else:
             else: