uber dog UD suffix

This commit is contained in:
Dave Schuyler 2005-03-03 20:28:58 +00:00
parent 06161a723f
commit e3edadb94b

View File

@ -89,6 +89,8 @@ class ConnectionRepository(DoInterestManager, CConnectionRepository):
moduleName = suffix[0] moduleName = suffix[0]
if self.dcSuffix and self.dcSuffix in suffix[1:]: if self.dcSuffix and self.dcSuffix in suffix[1:]:
moduleName += self.dcSuffix moduleName += self.dcSuffix
elif self.dcSuffix == 'UD' and 'AI' in suffix[1:]: #HACK:
moduleName += 'AI'
importSymbols = [] importSymbols = []
for i in range(dcFile.getNumImportSymbols(n)): for i in range(dcFile.getNumImportSymbols(n)):
@ -99,6 +101,8 @@ class ConnectionRepository(DoInterestManager, CConnectionRepository):
symbolName = suffix[0] symbolName = suffix[0]
if self.dcSuffix and self.dcSuffix in suffix[1:]: if self.dcSuffix and self.dcSuffix in suffix[1:]:
symbolName += self.dcSuffix symbolName += self.dcSuffix
elif self.dcSuffix == 'UD' and 'AI' in suffix[1:]: #HACK:
symbolName += 'AI'
importSymbols.append(symbolName) importSymbols.append(symbolName)
@ -114,7 +118,10 @@ class ConnectionRepository(DoInterestManager, CConnectionRepository):
# 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)
if classDef == None: if classDef is None and self.dcSuffix == 'UD': #HACK:
className = dclass.getName() + 'AI'
classDef = dcImports.get(className)
if classDef is None:
self.notify.info("No class definition for %s." % (className)) self.notify.info("No class definition for %s." % (className))
else: else:
if type(classDef) == types.ModuleType: if type(classDef) == types.ModuleType:
@ -354,9 +361,9 @@ class ConnectionRepository(DoInterestManager, CConnectionRepository):
if self.notify.getDebug(): if self.notify.getDebug():
print "ConnectionRepository sending datagram:" print "ConnectionRepository sending datagram:"
datagram.dumpHex(ostream) datagram.dumpHex(ostream)
self.sendDatagram(datagram) self.sendDatagram(datagram)
# debugging funcs for simulating a network-plug-pull # debugging funcs for simulating a network-plug-pull