apptools.naming.naming_manager module

The naming manager.

class apptools.naming.naming_manager.NamingManager[source]

Bases: traits.has_traits.HasTraits

The naming manager.

get_object_instance(info, name, context)[source]

Creates an object using the specified state information.

The naming manager asks the context for its list of OBJECT factories and calls them one by one until it gets a non-None result, indicating that the factory recognised the information and created an object.

If none of the factories recognize the state information (or if the context has no factories) then the state information itself is returned.

get_state_to_bind(obj, name, context)[source]

Returns the state of an object for binding.

The naming manager asks the context for its list of STATE factories and then calls them one by one until it gets a non-None result indicating that the factory recognised the object and created state information for it.

If none of the factories recognize the object (or if the context has no factories) then the object itself is returned.