def del_application(self, application, sync=True):
        """
        delete application from this team
        :param application: the application to be deleted from this team
        :param sync: If sync=True(default) synchronize with Ariane server. If sync=False,
        add the application object on list to be removed on next save().
        :return:
        """
        LOGGER.debug("Team.del_application")
        if not sync:
            self.app_2_rm.append(application)
        else:
            if application.id is None:
                application.sync()
            if self.id is not None and application.id is not None:
                params = {
                    'id': self.id,
                    'applicationID': application.id
                }
                args = {'http_operation': 'GET', 'operation_path': 'update/applications/delete', 'parameters': params}
                response = TeamService.requester.call(args)
                if response.rc != 0:
                    LOGGER.warning(
                        'Team.del_application - Problem while updating team ' + self.name +
                        '. Reason: ' + str(response.response_content) + '-' + str(response.error_message) +
                        " (" + str(response.rc) + ")"
                    )
                else:
                    self.app_ids.remove(application.id)
                    application.sync()
            else:
                LOGGER.warning(
                    'Team.del_application - Problem while updating team ' + self.name + '. Reason: application ' +
                    application.name + ' id is None or self.id is None'
                )
def del_application ( self , application , sync = True ) : LOGGER . debug ( "Team.del_application" ) if not sync : self . app_2_rm . append ( application ) else : if application . id is None : application . sync ( ) if self . id is not None and application . id is not None : params = { 'id' : self . id , 'applicationID' : application . id } args = { 'http_operation' : 'GET' , 'operation_path' : 'update/applications/delete' , 'parameters' : params } response = TeamService . requester . call ( args ) if response . rc != 0 : LOGGER . warning ( 'Team.del_application - Problem while updating team ' + self . name + '. Reason: ' + str ( response . response_content ) + '-' + str ( response . error_message ) + " (" + str ( response . rc ) + ")" ) else : self . app_ids . remove ( application . id ) application . sync ( ) else : LOGGER . warning ( 'Team.del_application - Problem while updating team ' + self . name + '. Reason: application ' + application . name + ' id is None or self.id is None' )
delete application from this team
        :param application: the application to be deleted from this team
        :param sync: If sync=True(default) synchronize with Ariane server. If sync=False,
        add the application object on list to be removed on next save().
        :return: