From 97e56d63e56170ff8d93ef30c2251bdb8b9c9746 Mon Sep 17 00:00:00 2001 From: Harvir Date: Thu, 14 Aug 2014 22:53:48 +0100 Subject: [PATCH 1/2] air: Fix indentation. --- direct/src/distributed/AstronInternalRepository.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/direct/src/distributed/AstronInternalRepository.py b/direct/src/distributed/AstronInternalRepository.py index ce562a703d..619a25bbe2 100644 --- a/direct/src/distributed/AstronInternalRepository.py +++ b/direct/src/distributed/AstronInternalRepository.py @@ -426,7 +426,7 @@ class AstronInternalRepository(ConnectionRepository): do.doId = doId self.addDOToTables(do, location=(parentId, zoneId)) do.sendGenerateWithRequired(self, parentId, zoneId, optionalFields) - do.generate() + do.generate() def requestDelete(self, do): """ From b1236b31a808248bff93dd38f52ce0084250aa56 Mon Sep 17 00:00:00 2001 From: bobbybee Date: Fri, 15 Aug 2014 21:21:18 -0400 Subject: [PATCH 2/2] Hopefully fixing styling --- .../distributed/AstronInternalRepository.py | 22 +++++++++---------- 1 file changed, 11 insertions(+), 11 deletions(-) diff --git a/direct/src/distributed/AstronInternalRepository.py b/direct/src/distributed/AstronInternalRepository.py index e86b9cfdf6..1cec09e662 100644 --- a/direct/src/distributed/AstronInternalRepository.py +++ b/direct/src/distributed/AstronInternalRepository.py @@ -421,18 +421,18 @@ class AstronInternalRepository(ConnectionRepository): for arg in args: dg.addString(str(arg)) self.eventSocket.Send(dg.getMessage()) - + def setAI(self, doId, aiChannel): """ Sets the AI of the specified DistributedObjectAI to be the specified channel. Generally, you should not call this method, and instead call DistributedObjectAI.setAI. """ - + dg = PyDatagram() dg.addServerHeader(doId, aiChannel, STATESERVER_OBJECT_SET_AI) dg.add_uint64(aiChannel) self.send(dg) - + def eject(self, clientChannel, reasonCode, reason): """ Kicks the client residing at the specified clientChannel, using the specifed reasoning. @@ -449,45 +449,45 @@ class AstronInternalRepository(ConnectionRepository): Sets the state of the client on the CA. Useful for logging in and logging out, and for little else. """ - + dg = PyDatagram() dg.addServerHeader(clientChannel, self.ourChannel, CLIENTAGENT_SET_STATE) dg.add_uint16(state) self.send(dg) - + def clientAddSessionObject(self, clientChannel, doId): """ Declares the specified DistributedObject to be a "session object", meaning that it is destroyed when the client disconnects. Generally used for avatars owned by the client. """ - + dg = PyDatagram() dg.addServerHeader(clientChannel, self.ourChannel, CLIENTAGENT_ADD_SESSION_OBJECT) dg.add_uint32(doId) self.send(dg) - + def clientAddInterest(self, clientChannel, interestId, parentId, zoneId): """ Opens an interest on the behalf of the client. This, used in conjunction with add_interest: visible (or preferably, disabled altogether), will mitigate possible security risks. """ - + dg = PyDatagram() dg.addServerHeader(clientChanel, self.ourChannel, CLIENTAGENT_ADD_INTEREST) dg.add_uint16(interestId) dg.add_uint32(parentId) dg.add_uint32(zoneId) self.send(dg) - + def setOwner(self, doId, newOwner): """ Sets the owner of a DistributedObject. This will enable the new owner to send "ownsend" fields, and will generate an OwnerView. """ - + dg = PyDatagram() dg.addServerHeader(doId, self.ourChannel, STATESERVER_OBJECT_SET_OWNER) dg.add_uint64(newOwner) - self.send(dg) \ No newline at end of file + self.send(dg)