def length_validator(self, column):
        if (
            isinstance(column.type, sa.types.String) and
            hasattr(column.type, 'length') and
            column.type.length
        ):
            return self.get_validator('length', max=column.type.length)
Takes actor/component description and
dataset/ETHPy150Open kvesteri/wtforms-alchemy/wtforms_alchemy/generator.py/FormGenerator.length_validator--crossover with--dataset/ETHPy150Open EricssonResearch/calvin-base/calvin/actorstore/store.py/GlobalStore.actor_hash