Kyle, You should be able to do something as simple as
class Foo: bars = relationship(Bar, backref='__parent__') Is it necessary? With the default traversal implementation you override __getitem__ to return objects with __name__ and __parent__: def __getitem__(self, key): b = object_mapper(self).query(Bar).filter_by(Bar.id==key) b.__name__ = key b.__parent__ = self return b to give Bar resources their own URL. If the bars don't have their own URL then they don't need __name__ and __parent__ at all. Daniel -- You received this message because you are subscribed to the Google Groups "pylons-devel" group. To post to this group, send email to pylons-devel@googlegroups.com. To unsubscribe from this group, send email to pylons-devel+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/pylons-devel?hl=en.