Dashboard
PHP:
8.2.30
OS:
Linux
User:
dh_nv8b2m
/
/
usr
/
lib
/
python3
/
dist-packages
/
django
/
contrib
/
gis
/
__pycache__
📤 Upload
📝 New File
📁 New Folder
Close
Editing: shortcuts.cpython-310.pyc
o ���_ � @ sx d dl Z d dlmZ d dlmZ d dlmZ d dlmZ zd dl Z W n e y- dZ Y nw dd� Zd d � Zdd� Z dS ) � N)�BytesIO)�settings)�HttpResponse)�loaderFc C s\ t � }t�|dtj��}|�d| �tj�� W d � n1 s w Y |�d� |� � S )z0Return compressed KMZ from the given KML string.�azdoc.kmlNr ) r �zipfile�ZipFile�ZIP_DEFLATED�writestr�encoder �DEFAULT_CHARSET�seek�read)�kml�kmz�zf� r �>/usr/lib/python3/dist-packages/django/contrib/gis/shortcuts.py�compress_kml s � r c O s t tj| i |��dd�S )z9Render the response as KML (using the correct MIME type).z$application/vnd.google-earth.kml+xml��content_type)r r �render_to_string��args�kwargsr r r � render_to_kml s �r c O s t ttj| i |���dd�S )zW Compress the KML content and return as KMZ (using the correct MIME type). z application/vnd.google-earth.kmzr )r r r r r r r r � render_to_kmz s �r )r �ior �django.confr �django.httpr �django.templater �numpy�ImportErrorr r r r r r r �<module> s �
Save
Cancel