def has_max_length(value, ln):

    if value is None:
        return

    if not value or len(value) > ln:
        return c('maxlength').replace('{length}', str(ln))
Ensure the given value is a maximum length.
dataset/ETHPy150Open heiskr/sagefy/server/modules/validations.py/has_max_length