Ejemplo n.º 1
0
 def _call_local_function(self, function, args):
     """Internal function called to short-cut local 'remote'
        function calls
     """
     from identity.route import identity_functions as _identity_functions
     from admin.handler import create_handler as _create_handler
     handler = _create_handler(_identity_functions)
     return handler(function=function, args=args)
    def _call_local_function(self, function, args):
        """Internal function called to short-cut local 'remote'
           function calls

           Args:
                function (function): Function to route
                args: Arguments to pass to routed function

            Returns:
                function: A handler function
        """
        from accounting.route import accounting_functions \
            as _accounting_functions
        from admin.handler import create_handler as _create_handler
        handler = _create_handler(_accounting_functions)
        return handler(function=function, args=args)
Ejemplo n.º 3
0
    def _call_local_function(self, function, args):
        """Internal function called to short-cut local 'remote'
           function calls

           Args:
                function: function to route
                args: arguments to be passed into function

            Returns:
                function: function object
        """

        from access.route import access_functions as _access_functions
        from admin.handler import create_handler as _create_handler

        handler = _create_handler(_access_functions)
        return handler(function=function, args=args)