Jump to >

djblets.registries.mixins

Utility mixins for registries.

class ExceptionFreeGetterMixin[source]

Bases: object

A mixin that prevents lookups from throwing errors.

get(attr_name, attr_value)[source]

Return the requested registered item.

Parameters:
  • attr_name (unicode) – The attribute name.
  • attr_value (object) – The attribute value.
Returns:

The matching registered item, if found. Otherwise, None is returned.

Return type:

object