Skip to content

Utils

LazyObject

new_method_proxy(func)

Util function to help us route functions to the nested object.

Source code in camundactl/utils.py
def new_method_proxy(func):
    """
    Util function to help us route functions
    to the nested object.
    """

    def inner(self, *args):
        if not self._is_init:
            self._setup()
        return func(self._wrapped, *args)

    return inner