Function
zope.traversing.api.getParent

Signature

getParent(obj)

Documentation String

Returns the container the object was traversed via.

Returns None if the object is a containment root. Raises TypeError if the object doesn't have enough context to get the parent.