Decorate a method as a ‘validator’ for one or more named properties.
I need to validate two incoming *-**attributes at the same time, for example:
attr_timezone = Column(String)
attr_timestamp = Column(MyTimeStamp)
When taking incoming arguments, `attr_timezone` as a string need to be first validated and converted to timezone instance before being attached to my custom class `MyTimeStamp`. Can `validates` do this?
--SQLAlchemy -The Python SQL Toolkit and Object Relational MapperTo post example code, please provide an MCVE: Minimal, Complete, and Verifiable Example. See http://stackoverflow.com/help/mcve for a full description.---You received this message because you are subscribed to the Google Groups "sqlalchemy" group.To unsubscribe from this group and stop receiving emails from it, send an email to sqlalchemy+...@googlegroups.com.To view this discussion on the web visit https://groups.google.com/d/msgid/sqlalchemy/ee2abfce-6a5a-4d43-b508-f86be3ea8cd5n%40googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/sqlalchemy/65671e2f-094a-427a-89a4-2678c9e6125en%40googlegroups.com.