HEX
Server: LiteSpeed
System: Linux us-phx-web1284.main-hosting.eu 4.18.0-553.109.1.lve.el8.x86_64 #1 SMP Thu Mar 5 20:23:46 UTC 2026 x86_64
User: u300739242 (300739242)
PHP: 8.2.30
Disabled: system, shell_exec, passthru, mysql_list_dbs, ini_alter, dl, symlink, link, chgrp, leak, popen, apache_child_terminate, virtual, mb_send_mail
Upload Files
File: //opt/alt/python27/lib/python2.7/site-packages/sqlalchemy/orm/exc.pyc
�
���ec@sqdZddlmZddlmZddlmZddlmZeefZ	dej
fd��YZeZdej
fd	��YZ
d
ejfd��YZdej
fd
��YZdej
fd��YZdefd��YZdefd��YZdejfd��YZdejfd��YZdejfd��YZd�Zejd�d��ZdS(sSQLAlchemy ORM exceptions.i(texc(tutil(tMultipleResultsFound(t
NoResultFoundtStaleDataErrorcBseZdZRS(saAn 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".

    (t__name__t
__module__t__doc__(((sC/opt/alt/python27/lib/python2.7/site-packages/sqlalchemy/orm/exc.pyRst
FlushErrorcBseZdZRS(s0A invalid condition was detected during flush().(RRR(((sC/opt/alt/python27/lib/python2.7/site-packages/sqlalchemy/orm/exc.pyR/st
UnmappedErrorcBseZdZRS(s?Base for exceptions that involve expected mappings not present.(RRR(((sC/opt/alt/python27/lib/python2.7/site-packages/sqlalchemy/orm/exc.pyR	3stObjectDereferencedErrorcBseZdZRS(sPAn operation cannot complete due to an object being garbage
    collected.

    (RRR(((sC/opt/alt/python27/lib/python2.7/site-packages/sqlalchemy/orm/exc.pyR
7stDetachedInstanceErrorcBseZdZdZRS(sSAn attempt to access unloaded attributes on a
    mapped instance that is detached.tbhk3(RRRtcode(((sC/opt/alt/python27/lib/python2.7/site-packages/sqlalchemy/orm/exc.pyR>stUnmappedInstanceErrorcBs2eZdZejd�dd��Zd�ZRS(s;An mapping operation was requested for an unknown instance.ssqlalchemy.orm.basecCs�tjj}|s�y9|jt|��tt|��}d||f}Wq�tk
r�tt|��}t|t�r�|dt|�7}q�q�Xnt	j
||�dS(Ns�Class %r is mapped, but this instance lacks instrumentation.  This occurs when the instance is created before sqlalchemy.orm.mapper(%s) was called.s;; was a class (%s) supplied where an instance was required?(Rt	preloadedtorm_basetclass_mapperttypet_safe_cls_nametUnmappedClassErrort_default_unmappedt
isinstanceR	t__init__(tselftobjtmsgtbasetname((sC/opt/alt/python27/lib/python2.7/site-packages/sqlalchemy/orm/exc.pyRHs
cCs|jd|jdffS(Ni(t	__class__tNonetargs(R((sC/opt/alt/python27/lib/python2.7/site-packages/sqlalchemy/orm/exc.pyt
__reduce___sN(RRRRtpreload_moduleRRR (((sC/opt/alt/python27/lib/python2.7/site-packages/sqlalchemy/orm/exc.pyREsRcBs#eZdZdd�Zd�ZRS(s8An mapping operation was requested for an unknown class.cCs)|st|�}ntj||�dS(N(RR	R(RtclsR((sC/opt/alt/python27/lib/python2.7/site-packages/sqlalchemy/orm/exc.pyRfscCs|jd|jdffS(Ni(RRR(R((sC/opt/alt/python27/lib/python2.7/site-packages/sqlalchemy/orm/exc.pyR ksN(RRRRRR (((sC/opt/alt/python27/lib/python2.7/site-packages/sqlalchemy/orm/exc.pyRcstObjectDeletedErrorcBs2eZdZejd�dd��Zd�ZRS(s�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.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.

    ssqlalchemy.orm.basecCs?tjj}|s(d|j|�}ntjj||�dS(NsDInstance '%s' has been deleted, or its row is otherwise not present.(RRRt	state_strtsa_exctInvalidRequestErrorR(RtstateRR((sC/opt/alt/python27/lib/python2.7/site-packages/sqlalchemy/orm/exc.pyR�s
cCs|jd|jdffS(Ni(RRR(R((sC/opt/alt/python27/lib/python2.7/site-packages/sqlalchemy/orm/exc.pyR �sN(RRRRR!RRR (((sC/opt/alt/python27/lib/python2.7/site-packages/sqlalchemy/orm/exc.pyR#ostUnmappedColumnErrorcBseZdZRS(s5Mapping operation was requested on an unknown column.(RRR(((sC/opt/alt/python27/lib/python2.7/site-packages/sqlalchemy/orm/exc.pyR(�stLoaderStrategyExceptioncBseZdZd�ZRS(s2A loader strategy for an attribute does not exist.cCsn|dkr,tjj|d||f�n>tjj|dtj|�|tj|�tj|�f�dS(NsCan't find strategy %s for %ssuCan't apply "%s" strategy to property "%s", which is a "%s"; this loader strategy is intended to be used with a "%s".(RR%R&RRtclsname_as_plain_name(Rtapplied_to_property_typetrequesting_propertyt
applies_totactual_strategy_typetstrategy_key((sC/opt/alt/python27/lib/python2.7/site-packages/sqlalchemy/orm/exc.pyR�s		(RRRR(((sC/opt/alt/python27/lib/python2.7/site-packages/sqlalchemy/orm/exc.pyR)�scCsdydj|j|jf�}Wn>tk
r_t|dd�}|dkr`t|�}q`nX|S(Nt.R(tjoinRRtAttributeErrortgetattrRtrepr(R"tcls_name((sC/opt/alt/python27/lib/python2.7/site-packages/sqlalchemy/orm/exc.pyR�s
ssqlalchemy.orm.basecCsatjj}y|j|�j}Wntftk
rBi}nXt|�}|s]d|SdS(NsClass '%s' is not mapped(RRRtmanager_of_classtmapperst	TypeErrortNO_STATER(R"RR7R((sC/opt/alt/python27/lib/python2.7/site-packages/sqlalchemy/orm/exc.pyR�s
N(RtRR%RRRR2tKeyErrorR9tSQLAlchemyErrorRtConcurrentModificationErrorRR&R	R
RRRR#R(R)RR!R(((sC/opt/alt/python27/lib/python2.7/site-packages/sqlalchemy/orm/exc.pyt<module>s$$