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/db/models/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Current File : //usr/lib64/python2.7/site-packages/django/contrib/gis/db/models/proxy.pyc
�
r�\c@s@dZddlmZddlmZdefd��YZdS(s�
The GeometryProxy object, allows for lazy-geometries.  The proxy uses
Python descriptors for instantiating and setting Geometry objects
corresponding to geographic model fields.

Thanks to Robert Coup for providing this functionality (see #4322).
i����(t
memoryview(tsixt
GeometryProxycBs&eZd�Zdd�Zd�ZRS(cCs||_||_dS(sp
        Proxy initializes on the given Geometry class (not an instance) and
        the GeometryField.
        N(t_fieldt_klass(tselftklasstfield((sD/tmp/pip-install-XxeQeY/django/django/contrib/gis/db/models/proxy.pyt__init__s	cCs�|dkr|S|j|jj}t||j�r>|}nF|dksV|dkr_d}n%|j|�}t||jj|�|S(s�
        This accessor retrieves the geometry, initializing it using the geometry
        class specified during initialization and the HEXEWKB value of the field.
        Currently, only GEOS or OGR geometries are supported.
        tN(tNonet__dict__Rtattnamet
isinstanceRtsetattr(Rtobjttypet
geom_valuetgeom((sD/tmp/pip-install-XxeQeY/django/django/contrib/gis/db/models/proxy.pyt__get__s		cCs�|jj}t||j�rit|j�j�|ksE|dkri|jdkr�|jj|_q�nJ|dks�t|tj	t
f�r�n"td|jj
t|�f��||j|jj<|S(s�
        This accessor sets the proxied geometry with the geometry class
        specified during initialization.  Values of None, HEXEWKB, or WKT may
        be used to set the geometry as well.
        tGEOMETRYs2cannot set %s GeometryProxy with value of type: %sN(Rt	geom_typeR
RtstrtuppertsridR
Rtstring_typesRt	TypeErrort	__class__t__name__RRR(RRtvaluetgtype((sD/tmp/pip-install-XxeQeY/django/django/contrib/gis/db/models/proxy.pyt__set__,s9%"N(Rt
__module__RR
RR(((sD/tmp/pip-install-XxeQeY/django/django/contrib/gis/db/models/proxy.pyRs	N(t__doc__tdjango.contrib.gisRtdjango.utilsRtobjectR(((sD/tmp/pip-install-XxeQeY/django/django/contrib/gis/db/models/proxy.pyt<module>s

https://t.me/AnonymousX5 - 2025