parameters: (self, REQUEST)
docstring: Surcharged values from proxied field.
docstring_summary: Surcharged values from proxied field.
docstring_tokens: Surcharged values from proxied field .
function: def manage_edit(self, REQUEST):
      """
      Surcharged values from proxied field.
      """
      # Edit template field attributes
      template_field = self.getRecursiveTemplateField()
      if template_field is not None:
  
        # Check the surcharged checkboxes
        surcharge_list = []
        for group in template_field.form.get_groups():
          for field in template_field.form.get_fields_in_group(group):
            field_id = field.id
            checkbox_key = "surcharge_%s" % field_id
            if not REQUEST.has_key(checkbox_key):
              surcharge_list.append(field_id)
  
        try:
          # validate the form and get results
          result = template_field.form.validate(REQUEST)
        except ValidationError, err:
          if REQUEST:
            message = "Error: %s - %s" % (err.field.get_value('title'),
                                          err.error_text)
            return self.manage_main(self, REQUEST,
                                    manage_tabs_message=message)
          else:
            raise
  
        self._surcharged_edit(result, surcharge_list)
  
      # Edit standards attributes
      # XXX It is not possible to call ZMIField.manage_edit because
      # it returns at the end...
      # we need to had a parameter to the method
      try:
        # validate the form and get results
        result = self.form.validate(REQUEST)
      except ValidationError, err:
        if REQUEST:
          message = "Error: %s - %s" % (err.field.get_value('title'),
                                        err.error_text)
          return self.manage_main(self,REQUEST,
                                  manage_tabs_message=message)
        else:
          raise
  
      self._edit(result)
  
      if REQUEST:
        message="Content changed."
        return self.manage_main(self, REQUEST,
                                manage_tabs_message=message)
function_tokens: def manage_edit ( self , REQUEST ) : # Edit template field attributes template_field = self . getRecursiveTemplateField ( ) if template_field is not None : # Check the surcharged checkboxes surcharge_list = [ ] for group in template_field . form . get_groups ( ) : for field in template_field . form . get_fields_in_group ( group ) : field_id = field . id checkbox_key = "surcharge_%s" % field_id if not REQUEST . has_key ( checkbox_key ) : surcharge_list . append ( field_id ) try : # validate the form and get results result = template_field . form . validate ( REQUEST ) except ValidationError , err : if REQUEST : message = "Error: %s - %s" % ( err . field . get_value ( 'title' ) , err . error_text ) return self . manage_main ( self , REQUEST , manage_tabs_message = message ) else : raise self . _surcharged_edit ( result , surcharge_list ) # Edit standards attributes # XXX It is not possible to call ZMIField.manage_edit because # it returns at the end... # we need to had a parameter to the method try : # validate the form and get results result = self . form . validate ( REQUEST ) except ValidationError , err : if REQUEST : message = "Error: %s - %s" % ( err . field . get_value ( 'title' ) , err . error_text ) return self . manage_main ( self , REQUEST , manage_tabs_message = message ) else : raise self . _edit ( result ) if REQUEST : message = "Content changed." return self . manage_main ( self , REQUEST , manage_tabs_message = message )