From f3b95a09b2ee918c900981f954f9716afb88f2ad Mon Sep 17 00:00:00 2001 From: Dave Schuyler Date: Sat, 16 Jul 2005 01:12:00 +0000 Subject: [PATCH] removed comments --- direct/src/distributed/DistributedObjectAI.py | 54 ------------------- 1 file changed, 54 deletions(-) diff --git a/direct/src/distributed/DistributedObjectAI.py b/direct/src/distributed/DistributedObjectAI.py index a6296a3bfe..58cc955530 100644 --- a/direct/src/distributed/DistributedObjectAI.py +++ b/direct/src/distributed/DistributedObjectAI.py @@ -365,60 +365,6 @@ class DistributedObjectAI(DirectObject): self.announceGenerate() if wantOtpServer: - ## def generateGlobalObject(self, doId, dcname): - ## # Look up the dclass - ## dclass = self.dclassesByName[dcname] - ## # Create a new distributed object, and put it in the dictionary - ## #distObj = self.generateWithRequiredFields(dclass, doId, di) - - ## # Construct a new one - ## classDef = dclass.getClassDef() - ## if classDef == None: - ## self.notify.error("Could not create an undefined %s object."%( - ## dclass.getName())) - ## distObj = classDef(self) - ## distObj.dclass = dclass - ## # Assign it an Id - ## distObj.doId = doId - ## # Put the new do in the dictionary - ## self.doId2do[doId] = distObj - ## # Update the required fields - ## distObj.generateInit() # Only called when constructed - ## distObj.generate() - ## if wantOtpServer: - ## # TODO: ROGER: where should we get parentId and zoneId? - ## parentId = None - ## zoneId = None - ## distObj.setLocation(parentId, zoneId) - ## # updateRequiredFields calls announceGenerate - ## return distObj - - ## def generateGlobalObject(self, doId, dcname, parentId=None, zoneId=None): - ## assert self.notify.debugStateCall(self) - ## # Look up the dclass - ## dclass = self.dclassesByName[dcname] - ## # Construct a new one - ## classDef = dclass.getClassDef() - ## if classDef == None: - ## self.notify.error("Could not create an undefined %s object."%( - ## dclass.getName())) - ## distObj = classDef(self) - ## distObj.dclass = dclass - - ## assert not hasattr(self, 'parentId') - ## self.doId = doId - ## self.parentId = parentId - ## self.zoneId = zoneId - ## # Put the new DO in the dictionaries - ## self.air.addDOToTables(self, location=(parentId,zoneId)) - - ## assert not hasattr(self, 'parentId') - ## self.parentId = parentId - ## self.zoneId = zoneId - ## distObj.generateInit() # Only called when constructed - ## self.generate() - ## return distObj - def generateOtpObject(self, parentId, zoneId, optionalFields=[], doId=None): assert self.notify.debugStateCall(self) # have we already allocated a doId?