apptools.naming.dir_context module

The base class for all directory contexts.

class apptools.naming.dir_context.DirContext[source]

Bases: apptools.naming.context.Context

The base class for all directory contexts.

find_bindings(visitor)[source]

Find bindings with attributes matching criteria in visitor.

Visitor is a function that is passed the bindings for each level of the heirarchy and the attribute dictionary for those bindings. The visitor examines the bindings and dictionary and returns the bindings it is interested in.

get_attributes(name)[source]

Returns the attributes associated with a named object.

set_attributes(name, attributes)[source]

Sets the attributes associated with a named object.