Missing "self." prefix inside python's Glacier.Application.addWithUUID method

wtruongwtruong Member William TruongOrganization: PersonalProject: Real Time Control of Devices Over the Cloud
In Ice 3.4.2:

The method for Glacier2.Application class, addWithUUID is missing the self. prefix when calling objectAdapter and createCallbackIdentity as shown below:

def addWithUUID(self, servant):
return objectAdapter().add(servant, createCallbackIdentity(Ice.generateUUID()))

This should be:

def addWithUUID(self, servant):
return self.objectAdapter().add(servant, self.createCallbackIdentity(Ice.generateUUID()))

Comments

  • mesmes CaliforniaAdministrators, ZeroC Staff Mark SpruiellOrganization: ZeroC, Inc.Project: Ice Developer ZeroC Staff
    Hi,

    Welcome to the forum.

    Thanks for reporting this bug, it will be fixed in the next release.

    Regards,
    Mark
Sign In or Register to comment.