*** empty log message ***

This commit is contained in:
David Rose 2001-04-05 15:49:16 +00:00
parent f1de09e0bf
commit f7b228cfd0
4 changed files with 11 additions and 8 deletions

View File

@ -72,12 +72,12 @@ class ClientDistClass:
cdu.updateField(self, do, di)
return None
def sendUpdate(self, cr, do, fieldName, args):
def sendUpdate(self, cr, do, fieldName, args, sendToId = None):
# Look up the cdu
assert(self.name2CDU.has_key(fieldName))
cdu = self.name2CDU[fieldName]
# Let the cdu finish the job
cdu.sendUpdate(cr, do, args)
cdu.sendUpdate(cr, do, args, sendToId)

View File

@ -72,12 +72,15 @@ class ClientDistUpdate:
for i in range(0, numElems):
datagram.putArg(args[i], self.types[i], self.divisors[i])
def sendUpdate(self, cr, do, args):
def sendUpdate(self, cr, do, args, sendToId = None):
datagram = Datagram.Datagram()
# Add message type
datagram.addUint16(CLIENT_OBJECT_UPDATE_FIELD)
# Add the DO id
datagram.addUint32(do.doId)
if sendToId == None:
datagram.addUint32(do.doId)
else:
datagram.addUint32(sendToId)
# Add the field id
datagram.addUint16(self.number)
# Add the arguments

View File

@ -291,14 +291,14 @@ class ClientRepository(DirectObject.DirectObject):
self.send(datagram)
return None
def sendUpdate(self, do, fieldName, args):
def sendUpdate(self, do, fieldName, args, sendToId = None):
# Get the DO id
doId = do.doId
# Get the cdc
assert(self.doId2cdc.has_key(doId))
cdc = self.doId2cdc[doId]
# Let the cdc finish the job
cdc.sendUpdate(self, do, fieldName, args)
cdc.sendUpdate(self, do, fieldName, args, sendToId)
def send(self, datagram):
#if self.notify.getDebug():

View File

@ -117,8 +117,8 @@ class DistributedObject(PandaObject):
cdc.updateField(self, di)
return None
def sendUpdate(self, fieldName, args):
self.cr.sendUpdate(self, fieldName, args)
def sendUpdate(self, fieldName, args, sendToId = None):
self.cr.sendUpdate(self, fieldName, args, sendToId)
def taskName(self, taskString):
return (taskString + "-" + str(self.getDoId()))