Re: [sqlalchemy] Where can I find the signature definition for @validates functions?

2015-08-06 Thread Mike Bayer
On 8/6/15 6:04 PM, Jinghui Niu wrote: I read the documentation and encountered this: | @validates('addresses', include_backrefs=False) def validate_address(self, key, address): assert '@' in address.email return address | What are the key and address in the validate_address function?

[sqlalchemy] Where can I find the signature definition for @validates functions?

2015-08-06 Thread Jinghui Niu
I read the documentation and encountered this: @validates('addresses', include_backrefs=False) def validate_address(self, key, address): assert '@' in address.email return address What are the key and address in the validate_address function? I can't find any explanation in our