| Server IP : 139.59.63.204 / Your IP : 216.73.217.62 Web Server : Apache/2.4.58 (Ubuntu) System : Linux ubuntu-s-1vcpu-1gb-blr1-01 6.8.0-110-generic #110-Ubuntu SMP PREEMPT_DYNAMIC Thu Mar 19 15:09:20 UTC 2026 x86_64 User : root ( 0) PHP Version : 8.3.6 Disable Function : NONE MySQL : OFF | cURL : ON | WGET : ON | Perl : ON | Python : OFF | Sudo : ON | Pkexec : OFF Directory : /usr/lib/python3/dist-packages/twisted/web/__pycache__/ |
Upload File : |
�
oj� � �H � d Z ddlZddlZddlmZ ddlmZ ddlmZm Z ddl
mZ ddlm
Z
mZmZmZmZ dZ G d � d
e� Z G d� d� Z ej, d
de� Zd� Zd� Z G d� dej4 � Z G d� dej4 � Z G d� dej4 � Zy)zH
I contain PythonScript, which is a very simple python script resource.
� N)�StringIO)� copyright)�execfile�
networkString)�_coerceToFilesystemEncoding)�http�resource�server�static�utilz�<p>You forgot to assign to the variable "resource" in your script. For example:</p>
<pre>
# MyCoolWebApp.rpy
import mygreatresource
resource = mygreatresource.MyGreatResource()
</pre>
c � � e Zd ZdZy)�
AlreadyCachedzG
This exception is raised when a path has already been cached.
N)�__name__�
__module__�__qualname__�__doc__� � �4/usr/lib/python3/dist-packages/twisted/web/script.pyr r s � �r r c � � e Zd Zd� Zd� Zd� Zy)�CacheScannerc �. � || _ || _ d| _ y )Nr )�path�registry�doCache��selfr r s r �__init__zCacheScanner.__init__% s � ��� � ��
���r c � � | j j | j � }|�t |� �| j � y �N)r �
getCachedPathr r �recache)r �cs r �cachezCacheScanner.cache* s3 � ��M�M�'�'�� � �2���=���"�"����r c � � d| _ y )N� )r )r s r r"