def doSetNickname(self, *args, **kwargs): """ Action method. """ self.nickname = args[0] if (args and args[0]) else ( settings.getNickName() or my_id.getLocalIdentity().getIDName()) settings.setNickName(self.nickname)
def doSetNickname(self, arg): """ Action method. """ self.nickname = arg or \ settings.getNickName() or \ my_id.getLocalIdentity().getIDName() settings.setNickName(self.nickname)