(domain, touchforms_error)
return any(s in exception_text for s in (
        'case sharing settings',
        'error in calculation',
        'problem with display condition',
    ))
Returns True if the given TouchformsError is the result of a
    form configuration error.
Returns True if the given TouchformsError is the result of a
    form configuration error.
Returns True if the given TouchformsError is the result of a form configuration error .
def touchforms_error_is_config_error(domain, touchforms_error):
    """
    Returns True if the given TouchformsError is the result of a
    form configuration error.
    """
    # Unfortunately there isn't a better way to do this.
    # What we want to do is try and pick out the types of exceptions
    # that are configuration errors such as an xpath reference error
    # or misconfigured case sharing settings.
    exception_text = touchforms_error.response_data.get('exception') or ''
    exception_text = exception_text.lower()
    return any(s in exception_text for s in (
        'case sharing settings',
        'error in calculation',
        'problem with display condition',
    ))
def touchforms_error_is_config_error ( domain , touchforms_error ) : # Unfortunately there isn't a better way to do this. # What we want to do is try and pick out the types of exceptions # that are configuration errors such as an xpath reference error # or misconfigured case sharing settings. exception_text = touchforms_error . response_data . get ( 'exception' ) or '' exception_text = exception_text . lower ( ) return any ( s in exception_text for s in ( 'case sharing settings' , 'error in calculation' , 'problem with display condition' , ) )