�
Ϫ�f� � �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" |