Module Expr Str ImportFrom alias ImportFrom alias ImportFrom alias ClassDef bases body Expr Str FunctionDef arguments args NameParam NameParam defaults body Assign AttributeStore NameLoad attr NameLoad Assign AttributeStore NameLoad attr NameLoad Assign AttributeStore NameLoad attr NameLoad decorator_list FunctionDef arguments args NameParam defaults body Expr Str Assign NameStore Call NameLoad NameLoad Str NameLoad If NameLoad body Return NameLoad Raise Call NameLoad Call AttributeLoad Str attr NameLoad decorator_list FunctionDef arguments args NameParam NameParam NameParam NameParam NameParam defaults NameLoad body Expr Str Assert NameLoad Assert NameLoad Assert NameLoad If UnaryOpNot NameLoad body Assert UnaryOpNot Call NameLoad NameLoad Str NameLoad Call AttributeLoad Str attr NameLoad NameLoad AttributeLoad NameLoad attr Assign AttributeStore NameLoad attr NameLoad Assign AttributeStore NameLoad attr NameLoad Return NameLoad decorator_list NameLoad decorator_list
N/A N/A Traversing definitions. pyramid.request Request websauna.system.core.interfaces IRoot zope.interface Interface Resource N/A N/A N/A Traversable resource part.

    Wraps underlying object into a traverse path. All resources are also tied to ``request`` object which gives them ability to query databases for further traversing through ``__getitem__()``.
     __init__ N/A N/A self request N/A N/A N/A N/A self __parent__ None N/A N/A self __name__ None N/A N/A self request request N/A get_title N/A N/A self N/A N/A N/A Return human-readable title of this resource.

        This is viewed in admin breadcrumbs path, etc.
         N/A title N/A getattr self title None N/A title N/A N/A title N/A N/A NotImplementedError N/A N/A get_breadcrumbs_title() implementation missing for {} format self N/A make_lineage N/A N/A self parent child name allow_new_parent N/A False N/A N/A Set traversing pointers between the child and the parent resources.

        Builds __parent__ and __name__ pointer and sets it on the child resource.

        * If lineage relationship is not lazy and the referenced children is stored in the parent, the lineage must be set when the child is put into parent container.

        * If lineage relationship is lazy and child resource is constructed upon lookup in ``__item__``, the lineage is constructed before the child is returned.

        :param parent: Parent resource who children is become part to

        :param child: Child resource mutated in place

        :param name: Id of the child resource as it will appear in the URL traversing path

        :param allow_new_parent: If the child has alraedy a parent assigned, allow override the parent... or basically move an existing resource. You don't usually want this for in-memory resource and this is for catching bugs.
         N/A child N/A parent N/A name N/A N/A allow_new_parent N/A N/A N/A N/A getattr child __parent__ None N/A N/A Tried to double init lineage for {} -> {}, previous parent was {} format parent child N/A child __parent__ N/A N/A child __parent__ parent N/A N/A child __name__ name N/A child N/A classmethod N/A