File manager - Edit - /opt/saltstack/salt/lib/python3.10/site-packages/cherrypy/__pycache__/_cptools.cpython-310.pyc
Back
o ;j�F � @ s� d Z ddlZddlmZ ddlmZmZmZmZ ddlm Z mZ ddlm Z ddlmZmZ dd � Zd ZG dd� de�ZG d d� de�ZG dd� de�ZG dd� de�ZG dd� de�ZG dd� de�ZG dd� de�ZG dd� de�ZG dd� de�Zed� ZZeej�e_edej �e_ edej!d d!�e_!edej"�e_"ed"ej#�e_$ed"ej%�e_&ed#ej'd$d!�e_'eej(�e_)ed%ej*d&d!�e_+edej,�e_,ed'ej-d(d!�e_.ed%ej/d)d!�e_/eej0�e_0eej1�e_1e� e_ eej2�e_3ed'ej4d*�e_ ed%ej5�e_5edej6�e_6edej7�e_7ed'ej8d+d!�e_8ed%ej9�e_9edej:�e_:edej(�e_(edej;dd!�e_;edej<d d!�e_<ed'ej=d d!�e_=ed'ej>d,d!�e_ed'ej?d,d!�e_ed'ej@d-d!�e_A[[[[dS ).a� CherryPy tools. A "tool" is any helper, adapted to CP. Tools are usually designed to be used in a variety of ways (although some may only offer one if they choose): Library calls All tools are callables that can be used wherever needed. The arguments are straightforward and should be detailed within the docstring. Function decorators All tools, when called, may be used as decorators which configure individual CherryPy page handlers (methods on the CherryPy tree). That is, "@tools.anytool()" should "turn on" the tool via the decorated function's _cp_config attribute. CherryPy config If a tool exposes a "_setup" callable, it will be called once per Request (if the feature is "turned on" via config). Tools may be implemented as any object with a namespace. The builtins are generally either modules or instances of the tools.Tool class. � N��expose)�cptools�encoding�static� jsontools)�sessions� xmlrpcutil)�caching)� auth_basic�auth_digestc C s0 ddl }t| |j�r | j} | j}|jd|j� S )z?Return the names of all static arguments to the given function.r N)�types� isinstance� MethodType�__func__�__code__�co_varnames�co_argcount)�funcr �co� r �E/opt/saltstack/salt/lib/python3.10/site-packages/cherrypy/_cptools.py�_getargs"