everest.relationship

Parent/child relationship between entities or resources.

class everest.relationship.Relationship(parent, children=None, backref=None)[source]

Bases: object

Represents a nested relationship between a parent object and a collection of child objects.

This is used for deferred access of child objects and for dynamic creation of a filter specification for the children.

Variables:
  • parent – parent object
  • children – child object collection
  • backref – name of the attribute referencing the parent in each child object.
__weakref__

list of weak references to the object (if defined)

Project Versions

Previous topic

everest.orm

Next topic

everest.renderers

This Page