If I'm writing a comparator decorator, does it take care of expression 
decorator too?

Eg:

    @hybrid_property
    def phone_number(self):
        return self._phone_number

    @phone_number.comparator
    def phone_number(cls):
        """Truncate the RHS value if it's too long to fit into the column"""
        return TruncatingComparator(cls._phone_number)

    @phone_number.expression ???
-- 
Fayaz Yusuf Khan
Cloud architect, Dexetra SS, India
fayaz.yusuf.khan_AT_gmail_DOT_com, fayaz_AT_dexetra_DOT_com
+91-9746-830-823

-- 
You received this message because you are subscribed to the Google Groups 
"sqlalchemy" group.
To post to this group, send email to sqlalchemy@googlegroups.com.
To unsubscribe from this group, send email to 
sqlalchemy+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/sqlalchemy?hl=en.

Reply via email to