(self, REQUEST)
Rename a family
Rename a family
Rename a family
def manage_renameFamily(self, REQUEST):
      """Rename a family"""
      redirect_url = REQUEST.URL1 + '/manageLoadBalancing?manage_tabs_message='
      old_family_name = REQUEST['manage_renameFamily']
      new_family_name = REQUEST['family_new_name_' + old_family_name]
      try:
        self.renameFamily(old_family_name, new_family_name)
      except ValueError as exc:
        raise Redirect(redirect_url + urllib.quote(str(exc)))
      REQUEST.RESPONSE.redirect(redirect_url + urllib.quote('Family renamed.'))
def manage_renameFamily ( self , REQUEST ) : redirect_url = REQUEST . URL1 + '/manageLoadBalancing?manage_tabs_message=' old_family_name = REQUEST [ 'manage_renameFamily' ] new_family_name = REQUEST [ 'family_new_name_' + old_family_name ] try : self . renameFamily ( old_family_name , new_family_name ) except ValueError as exc : raise Redirect ( redirect_url + urllib . quote ( str ( exc ) ) ) REQUEST . RESPONSE . redirect ( redirect_url + urllib . quote ( 'Family renamed.' ) )