Say I have a class that derives from a Node class that has a 'parent' relationship (using 'parent_id' and 'id' fields):
from sqlalchemy.ext.hybrid import hybrid_property class MyClass(Node): @hybrid_property def grandparent(self): return self.parent.parent @grandparent.expression def grandparent(cls): pass # hmm? How would I go about the implementing the grandparent hybrid expression? What I have is a boolean clause list with two comparisons of 'parent_id' and 'id' using aliases (not included in the example). I was hoping I could return that but it's not what it expects. Thanks for your help. -- http://danielnouri.org -- 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.