(self, form, key_to_check)
return ''
Check a form value and return an error string if applicable.

        Args:
            form (dict): the dict that keeps the form data.
            key_to_check (str): the key in the form data to check against.

        Returns:
            An empty string if there are no issues, otherwise an
            error string to use to abort.
Check a form value and return an error string if applicable.
Check a form value and return an error string if applicable .
def _validate_form_entry(self, form, key_to_check):
        """Check a form value and return an error string if applicable.

        Args:
            form (dict): the dict that keeps the form data.
            key_to_check (str): the key in the form data to check against.

        Returns:
            An empty string if there are no issues, otherwise an
            error string to use to abort.
        """
        value = form.get(key_to_check)
        if not value:
            return 'Unable to save an attribute without a {0:s}.'.format(
                key_to_check)

        if not isinstance(value, str):
            return 'Unable to save an attribute without a {0:s}.'.format(
                key_to_check)

        return ''
def _validate_form_entry ( self , form , key_to_check ) : value = form . get ( key_to_check ) if not value : return 'Unable to save an attribute without a {0:s}.' . format ( key_to_check ) if not isinstance ( value , str ) : return 'Unable to save an attribute without a {0:s}.' . format ( key_to_check ) return ''