django_auxilium.utils.string module

class django_auxilium.utils.string.TextOnion[source]

Bases: django_auxilium.utils.functools.decorators.Decorator

Simple text onion decorator.

This decorator ensures that the decorated function always receives text string even if the decorator receives binary text. Once the wrapped function computes the result, decorator returns the same data-type as it has received.

get_wrapped_object()[source]
django_auxilium.utils.string.text_onion(*args, **kwargs)

Simple text onion decorator.

This decorator ensures that the decorated function always receives text string even if the decorator receives binary text. Once the wrapped function computes the result, decorator returns the same data-type as it has received.