'Override the :app:`Pyramid` :term:`execution policy` in the
current configuration.  The ``policy`` argument must be an instance
of an :class:`pyramid.interfaces.IExecutionPolicy` or a
:term:`dotted Python name` that points at an instance of an
execution policy.'

@action_method
def set_execution_policy(self, policy):

    policy = self.maybe_dotted(policy)
    if (policy is None):
        policy = default_execution_policy
    def register():
        self.registry.registerUtility(policy, IExecutionPolicy)
    intr = self.introspectable('execution    policy', None, self.object_description(policy), 'execution    policy')
    intr['policy'] = policy
    self.action(IExecutionPolicy, register, introspectables=(intr,))
