(self, user_id_key, login_portal_type_list, RESPONSE=None)
Edit the object
Edit the object
Edit the object
def manage_editERP5ExternalAuthenticationPlugin(self, user_id_key, login_portal_type_list, RESPONSE=None):
    """Edit the object"""
    error_message = ''

    #Save user_id_key
    if user_id_key == '' or user_id_key is None:
      error_message += 'Invalid key value '
    else:
      self.user_id_key = user_id_key

    if login_portal_type_list == '' or login_portal_type_list is None:
      error_message += 'Invalid portal type value '
    else:
      self.login_portal_type_list = login_portal_type_list

    #Redirect
    if RESPONSE is not None:
      if error_message != '':
        self.REQUEST.form['manage_tabs_message'] = error_message
        return self.manage_editERP5ExternalAuthenticationPluginForm(RESPONSE)
      else:
        message = "Updated"
        RESPONSE.redirect('%s/manage_editERP5ExternalAuthenticationPluginForm'
                          '?manage_tabs_message=%s'
                          % (self.absolute_url(), message)
                          )
def manage_editERP5ExternalAuthenticationPlugin ( self , user_id_key , login_portal_type_list , RESPONSE = None ) : error_message = '' #Save user_id_key if user_id_key == '' or user_id_key is None : error_message += 'Invalid key value ' else : self . user_id_key = user_id_key if login_portal_type_list == '' or login_portal_type_list is None : error_message += 'Invalid portal type value ' else : self . login_portal_type_list = login_portal_type_list #Redirect if RESPONSE is not None : if error_message != '' : self . REQUEST . form [ 'manage_tabs_message' ] = error_message return self . manage_editERP5ExternalAuthenticationPluginForm ( RESPONSE ) else : message = "Updated" RESPONSE . redirect ( '%s/manage_editERP5ExternalAuthenticationPluginForm' '?manage_tabs_message=%s' % ( self . absolute_url ( ) , message ) )