drose: accept HumanDNA instead of just HumanDNAAI

This commit is contained in:
Asad M. Zaman 2005-03-09 20:46:11 +00:00
parent 497d3b2610
commit 8770751d27
1 changed files with 6 additions and 0 deletions

View File

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