I am pretty new to python and sqlalchemy and would like to ask for an advice.
What would be the best way to force uppercase values in a SqlAlchemy field when the rec
Have a look at events
YOu can easily add a listener for a save/update and just uppercase the string:
def uppercase_code(target, value, oldvalue, initiator):
return value.upper()
# setup listener on Item.code attribute, instructing
# it to use the return value
listen(Item.code, 'set', uppercase_code, retval=True)