https://t.me/AnonymousX5
Server : Apache
System : Linux cvar2.toservers.com 3.10.0-962.3.2.lve1.5.73.el7.x86_64 #1 SMP Wed Aug 24 21:31:23 UTC 2022 x86_64
User : njnconst ( 1116)
PHP Version : 8.4.18
Disable Function : NONE
Directory :  /usr/lib64/python2.7/site-packages/django/contrib/gis/admin/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Current File : //usr/lib64/python2.7/site-packages/django/contrib/gis/admin/options.pyc
�
r�\c@s�ddlmZddlmZddlmZddlmZdefd��YZddl	m
Z
e
jr�e
jdkr�d
Z
ndZ
defd
��YZndS(i����(t
ModelAdmin(tOpenLayersWidget(tOGRGeomType(tmodelst
GeoModelAdmincBs�eZdZdZdZdZeZeZgZ	dZ
eZeZeZ
eZeZeZeZeZeZeZdZdZdZdZdZe
d	Zd
ZdZdZid
d6ZeZ e!Z"e#d��Z$d�Z%d�Z&RS(s�
    The administration options class for Geographic models. Map settings
    may be overloaded from their defaults to create custom maps.
    iiiiXi�i�sgis/admin/openlayers.htmls,http://openlayers.org/api/2.11/OpenLayers.jsis&http://vmap0.tiles.osgeo.org/wms/vmap0tbasicsOpenLayers WMSs
image/jpegtformatcCs9tt|�j}|j|jg�|j|j�|S(s-Injects OpenLayers JavaScript into the admin.(tsuperRtmediatadd_jstopenlayers_urltextra_js(tselfR((sB/tmp/pip-install-XxeQeY/django/django/contrib/gis/admin/options.pyR+scKspt|tj�rS|jdkrS|jdd�}|j|�|d<|j|�Stt	|�j
||�SdS(s�
        Overloaded from ModelAdmin so that an OpenLayersWidget is used
        for viewing/editing 2D GeometryFields (OpenLayers 2 does not support
        3D editing).
        itrequesttwidgetN(t
isinstanceRt
GeometryFieldtdimtpoptNonetget_map_widgett	formfieldRRtformfield_for_dbfield(Rtdb_fieldtkwargsR
((sB/tmp/pip-install-XxeQeY/django/django/contrib/gis/admin/options.pyR3s
!
cs}�jdk��rK�jdkr-d�qQt�jjdd���nd�d	�jf����fd
��Y}|S(s�
        Returns a subclass of the OpenLayersWidget (or whatever was specified
        in the `widget` attribute) using the settings from the attributes set
        in this class.
        t
MULTIPOINTtMULTILINESTRINGtMULTIPOLYGONtGEOMETRYCOLLECTIONtAnytMULTItRtOLMapcs�eZ�jZ�jZdZ�jrcg�jj�D]Zde^q7Zddje�Zni!�j	d6�j
d6�jd6�jp��j
d6e�j�d6�jd	6�d
6�jd6�jd6�d
6�jdkd6�jd,kd6�jd-kd6�jd.kd6�jd6�jd6�jd6�jd6�jd6�jd6�jd6�jd 6�jd!6�jd"6�jd#6�jd$6�jd%6�jd&6�j d'6�j!d(6�j"d)6ed*6�jd+6Z#RS(/Rs%s: '%s's, %ss, tdefault_lontdefault_lattdefault_zoomtdisplay_wktt	geom_typet
field_namet
is_collectiont
scrollablet
layerswitchertcollection_typetGEOMETRYt
is_generict
LINESTRINGRt
is_linestringtPOLYGONRt
is_polygontPOINTRtis_pointtnum_zoomtmax_zoomtmin_zoomtunitstmax_resolutiont
max_extentt
modifiabletmouse_positiont
scale_textt	map_widtht
map_heightt
point_zoomtsridtdisplay_sridtwms_urlt	wms_layertwms_nametwms_optionstdebug(R-R(R/R(R1R($t__name__t
__module__tmap_templatettemplateR%RDtitemstpairtjoinR!R"R#RER$RtnameR(R)R3R4R5R6R7R8R9R:R;R<R=R>tmap_sridR@RARBRCtparams((R*RR'R(sB/tmp/pip-install-XxeQeY/django/django/contrib/gis/admin/options.pyR NsN			&






















(s
MULTIPOINTsMULTILINESTRINGsMULTIPOLYGONR(R%RtreplaceR(RRR ((R*RR'RsB/tmp/pip-install-XxeQeY/django/django/contrib/gis/admin/options.pyRAs	(+('RFRGt__doc__R!R"R#tFalseR$R@RR3R4R5R6R7R8tTrueR9R:R;R)R(R<R=RNRHR
R>RARBRCRDRERRtpropertyRRR(((sB/tmp/pip-install-XxeQeY/django/django/contrib/gis/admin/options.pyRsB

	(tgdaliiii1�
tOSMGeoAdmincBs6eZdZdZeZdZdZedZdZ	RS(sgis/admin/osm.htmlis%-20037508,-20037508,20037508,20037508s156543.0339itm(
RFRGRHR3tspherical_mercator_sridRNR8R7R>R6(((sB/tmp/pip-install-XxeQeY/django/django/contrib/gis/admin/options.pyRV�s
N(ii(tdjango.contrib.adminRt django.contrib.gis.admin.widgetsRtdjango.contrib.gis.gdalRtdjango.contrib.gis.dbRRtdjango.contrib.gisRUtHAS_GDALtGDAL_VERSIONRXRV(((sB/tmp/pip-install-XxeQeY/django/django/contrib/gis/admin/options.pyt<module>su		

https://t.me/AnonymousX5 - 2025