tools/cwrap/plugins/__init__.py
def process_option_code_template(self, template, option):
        """Used to modify the code template for the option.

        The "code template" can be thought of the actual body implementing the
        wrapped function call --> i.e. it is not the argument check,
        assignment, etc. but the actual logic of the function. The template is
        a list containing two operations: the $call, and the $return_result.
        These represent the "locations" where the function call will happen,
        and the function will return.

        This function can modify the list to insert arbitrary code around the
        $call and $return_result. For example, one might want to wrap the code
        in a try/catch, or post-process the result in some way. This allows a
        plugin to do that.

        Args:
            template: a list containing $call and $return_result, in addition
            to any arbitrary code inserted by other plugins.
            option: dictionary containing the information for this specific
            option.

        Returns:
            The same "code template", possibly modified by this plugin.

        """
        return template
Used to modify the code template for the option.

        The "code template" can be thought of the actual body implementing the
        wrapped function call --> i.e. it is not the argument check,
        assignment, etc. but the actual logic of the function. The template is
        a list containing two operations: the $call, and the $return_result.
        These represent the "locations" where the function call will happen,
        and the function will return.

        This function can modify the list to insert arbitrary code around the
        $call and $return_result. For example, one might want to wrap the code
        in a try/catch, or post-process the result in some way. This allows a
        plugin to do that.

        Args:
            template: a list containing $call and $return_result, in addition
            to any arbitrary code inserted by other plugins.
            option: dictionary containing the information for this specific
            option.

        Returns:
            The same "code template", possibly modified by this plugin.

        
Used to modify the code template for the option.
The "code template" can be thought of the actual body implementing the
wrapped function call --> i.e. it is not the argument check,
assignment, etc. but the actual logic of the function. The template is
a list containing two operations: the $call, and the $return_result.
These represent the "locations" where the function call will happen,
and the function will return.

This function can modify the list to insert arbitrary code around the
$call and $return_result. For example, one might want to wrap the code
in a try/catch, or post-process the result in some way. This allows a
plugin to do that.

a list containing $call and $return_result, in addition
to any arbitrary code inserted by other plugins.
option: dictionary containing the information for this specific
option.

The same "code template", possibly modified by this plugin.
Used to modify the code template for the option . The " code template " can be thought of the actual body implementing the wrapped function call -- > i . e . it is not the argument check assignment etc . but the actual logic of the function . The template is a list containing two operations : the $call and the $return_result . These represent the " locations " where the function call will happen and the function will return . This function can modify the list to insert arbitrary code around the $call and $return_result . For example one might want to wrap the code in a try / catch or post - process the result in some way . This allows a plugin to do that . a list containing $call and $return_result in addition to any arbitrary code inserted by other plugins . option : dictionary containing the information for this specific option . The same " code template " possibly modified by this plugin .
def process_option_code_template(self, template, option):
        return template
def process_option_code_template ( self , template , option ) : return template
Used to modify the code template for the option.
Used to modify the code template for the option .
"""Used to modify the code template for the option.

        The "code template" can be thought of the actual body implementing the
        wrapped function call --> i.e. it is not the argument check,
        assignment, etc. but the actual logic of the function. The template is
        a list containing two operations: the $call, and the $return_result.
        These represent the "locations" where the function call will happen,
        and the function will return.

        This function can modify the list to insert arbitrary code around the
        $call and $return_result. For example, one might want to wrap the code
        in a try/catch, or post-process the result in some way. This allows a
        plugin to do that.

        Args:
            template: a list containing $call and $return_result, in addition
            to any arbitrary code inserted by other plugins.
            option: dictionary containing the information for this specific
            option.

        Returns:
            The same "code template", possibly modified by this plugin.

        """
self
template
option