403Webshell
Server IP : 192.158.238.246  /  Your IP : 3.144.16.26
Web Server : LiteSpeed
System : Linux uniform.iwebfusion.net 4.18.0-553.27.1.lve.1.el8.x86_64 #1 SMP Wed Nov 20 15:58:00 UTC 2024 x86_64
User : jenniferflocom ( 1321)
PHP Version : 8.1.32
Disable Function : NONE
MySQL : OFF  |  cURL : ON  |  WGET : ON  |  Perl : ON  |  Python : ON  |  Sudo : OFF  |  Pkexec : OFF
Directory :  /opt/alt/python37/lib64/python3.7/site-packages/sqlalchemy/orm/__pycache__/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Command :


[ Back ]     

Current File : /opt/alt/python37/lib64/python3.7/site-packages/sqlalchemy/orm/__pycache__/exc.cpython-37.pyc
B

��4]��@sdZddlmZddlmZeefZGdd�dej�Z	e	Z
Gdd�dej�ZGdd	�d	ej�Z
Gd
d�dej�ZGdd
�d
ej�ZGdd�de
�ZGdd�de
�ZGdd�dej�ZGdd�dej�ZGdd�dej�ZGdd�dej�ZGdd�dej�Zdd�Ze�d�dd ��Zd!S)"zSQLAlchemy ORM exceptions.�)�exc)�utilc@seZdZdZdS)�StaleDataErroraaAn operation encountered database state that is unaccounted for.

    Conditions which cause this to happen include:

    * A flush may have attempted to update or delete rows
      and an unexpected number of rows were matched during
      the UPDATE or DELETE statement.   Note that when
      version_id_col is used, rows in UPDATE or DELETE statements
      are also matched against the current known version
      identifier.

    * A mapped object with version_id_col was refreshed,
      and the version number coming back from the database does
      not match that of the object itself.

    * A object is detached from its parent object, however
      the object was previously attached to a different parent
      identity which was garbage collected, and a decision
      cannot be made if the new parent was really the most
      recent "parent".

    N)�__name__�
__module__�__qualname__�__doc__�r	r	�E/opt/alt/python37/lib64/python3.7/site-packages/sqlalchemy/orm/exc.pyrsrc@seZdZdZdS)�
FlushErrorz0A invalid condition was detected during flush().N)rrrrr	r	r	r
r-src@seZdZdZdS)�
UnmappedErrorz?Base for exceptions that involve expected mappings not present.N)rrrrr	r	r	r
r1src@seZdZdZdS)�ObjectDereferencedErrorzPAn operation cannot complete due to an object being garbage
    collected.

    N)rrrrr	r	r	r
r
5sr
c@seZdZdZdZdS)�DetachedInstanceErrorzSAn attempt to access unloaded attributes on a
    mapped instance that is detached.Zbhk3N)rrrr�coder	r	r	r
r<src@s,eZdZdZe�d�ddd��Zdd�ZdS)	�UnmappedInstanceErrorz;An mapping operation was requested for an unknown instance.zsqlalchemy.orm.baseNcCsz|sjy*|�t|��tt|��}d||f}Wn:tk
rhtt|��}t|t�rd|dt|�7}YnXt�||�dS)Nz�Class %r is mapped, but this instance lacks instrumentation.  This occurs when the instance is created before sqlalchemy.orm.mapper(%s) was called.z;; was a class (%s) supplied where an instance was required?)Zclass_mapper�type�_safe_cls_name�UnmappedClassError�_default_unmapped�
isinstancer�__init__)�self�base�obj�msg�namer	r	r
rFs
zUnmappedInstanceError.__init__cCs|jd|jdffS)N�)�	__class__�args)rr	r	r
�
__reduce__[sz UnmappedInstanceError.__reduce__)N)rrrrr�dependenciesrrr	r	r	r
rCsrc@s"eZdZdZddd�Zdd�ZdS)rz8An mapping operation was requested for an unknown class.NcCs|st|�}t�||�dS)N)rrr)r�clsrr	r	r
rbszUnmappedClassError.__init__cCs|jd|jdffS)Nr)rr)rr	r	r
rgszUnmappedClassError.__reduce__)N)rrrrrrr	r	r	r
r_s
rc@s,eZdZdZe�d�ddd��Zdd�ZdS)	�ObjectDeletedErrora�A refresh operation failed to retrieve the database
    row corresponding to an object's known primary key identity.

    A refresh operation proceeds when an expired attribute is
    accessed on an object, or when :meth:`.Query.get` is
    used to retrieve an object which is, upon retrieval, detected
    as expired.   A SELECT is emitted for the target row
    based on primary key; if no row is returned, this
    exception is raised.

    The true meaning of this exception is simply that
    no row exists for the primary key identifier associated
    with a persistent object.   The row may have been
    deleted, or in some cases the primary key updated
    to a new value, outside of the ORM's management of the target
    object.

    zsqlalchemy.orm.baseNcCs$|sd|�|�}tj�||�dS)NzDInstance '%s' has been deleted, or its row is otherwise not present.)Z	state_str�sa_exc�InvalidRequestErrorr)rr�staterr	r	r
rszObjectDeletedError.__init__cCs|jd|jdffS)Nr)rr)rr	r	r
r�szObjectDeletedError.__reduce__)N)rrrrrr rrr	r	r	r
r"ks	r"c@seZdZdZdS)�UnmappedColumnErrorz5Mapping operation was requested on an unknown column.N)rrrrr	r	r	r
r&�sr&c@seZdZdZdS)�
NoResultFoundz2A database result was required but none was found.N)rrrrr	r	r	r
r'�sr'c@seZdZdZdS)�MultipleResultsFoundzCA single database result was required but more than one were found.N)rrrrr	r	r	r
r(�sr(c@seZdZdZdd�ZdS)�LoaderStrategyExceptionz2A loader strategy for an attribute does not exist.c
CsP|dkr tj�|d||f�n,tj�|dt�|�|t�|�t�|�f�dS)NzCan't find strategy %s for %szuCan't apply "%s" strategy to property "%s", which is a "%s"; this loader strategy is intended to be used with a "%s".)r#r$rrZclsname_as_plain_name)rZapplied_to_property_typeZrequesting_propertyZ
applies_toZactual_strategy_typeZstrategy_keyr	r	r
r�sz LoaderStrategyException.__init__N)rrrrrr	r	r	r
r)�sr)cCsLyd�|j|jf�}Wn0tk
rFt|dd�}|dkrBt|�}YnX|S)N�.r)�joinrr�AttributeError�getattr�repr)r!Zcls_namer	r	r
r�srzsqlalchemy.orm.basecCsXy|�|�j}Wn.tk
r(i}Yntk
r>i}YnXt|�}|sTd|SdS)NzClass '%s' is not mapped)Zmanager_of_class�mappers�NO_STATE�	TypeErrorr)rr!r/rr	r	r
r�s
rN)r�rr#rr,�KeyErrorr0ZSQLAlchemyErrorrZConcurrentModificationErrorrr$rr
rrrr"r&r'r(r)rr rr	r	r	r
�<module>s$" 

Youez - 2016 - github.com/yon3zu
LinuXploit