Hackfut Security File Manager
Current Path:
/opt/alt/python27/lib64/python2.7/site-packages/sqlalchemy/orm
opt
/
alt
/
python27
/
lib64
/
python2.7
/
site-packages
/
sqlalchemy
/
orm
/
📁
..
📄
__init__.py
(7.9 KB)
📄
__init__.pyc
(9.31 KB)
📄
__init__.pyo
(9.31 KB)
📄
attributes.py
(55.94 KB)
📄
attributes.pyc
(55.59 KB)
📄
attributes.pyo
(55.32 KB)
📄
base.py
(14.32 KB)
📄
base.pyc
(15.11 KB)
📄
base.pyo
(15.11 KB)
📄
collections.py
(51.18 KB)
📄
collections.pyc
(62.31 KB)
📄
collections.pyo
(62.1 KB)
📄
dependency.py
(45.11 KB)
📄
dependency.pyc
(28.68 KB)
📄
dependency.pyo
(28.59 KB)
📄
deprecated_interfaces.py
(17.83 KB)
📄
deprecated_interfaces.pyc
(21.11 KB)
📄
deprecated_interfaces.pyo
(21.11 KB)
📄
descriptor_props.py
(24.95 KB)
📄
descriptor_props.pyc
(28.1 KB)
📄
descriptor_props.pyo
(28.1 KB)
📄
dynamic.py
(12.84 KB)
📄
dynamic.pyc
(14.42 KB)
📄
dynamic.pyo
(14.42 KB)
📄
evaluator.py
(4.7 KB)
📄
evaluator.pyc
(7.19 KB)
📄
evaluator.pyo
(7.19 KB)
📄
events.py
(83.09 KB)
📄
events.pyc
(91.58 KB)
📄
events.pyo
(91.58 KB)
📄
exc.py
(5.31 KB)
📄
exc.pyc
(7.75 KB)
📄
exc.pyo
(7.75 KB)
📄
identity.py
(10.01 KB)
📄
identity.pyc
(14.76 KB)
📄
identity.pyo
(14.76 KB)
📄
instrumentation.py
(17.1 KB)
📄
instrumentation.pyc
(20.65 KB)
📄
instrumentation.pyo
(20.57 KB)
📄
interfaces.py
(21.56 KB)
📄
interfaces.pyc
(26.11 KB)
📄
interfaces.pyo
(26.11 KB)
📄
loading.py
(25.29 KB)
📄
loading.pyc
(15.28 KB)
📄
loading.pyo
(15.28 KB)
📄
mapper.py
(116.54 KB)
📄
mapper.pyc
(92.81 KB)
📄
mapper.pyo
(92.66 KB)
📄
path_registry.py
(7.57 KB)
📄
path_registry.pyc
(12.58 KB)
📄
path_registry.pyo
(12.58 KB)
📄
persistence.py
(52.41 KB)
📄
persistence.pyc
(41.25 KB)
📄
persistence.pyo
(41.25 KB)
📄
properties.py
(10.21 KB)
📄
properties.pyc
(11.3 KB)
📄
properties.pyo
(11.3 KB)
📄
query.py
(150.98 KB)
📄
query.pyc
(143.06 KB)
📄
query.pyo
(143.02 KB)
📄
relationships.py
(115.47 KB)
📄
relationships.pyc
(100.36 KB)
📄
relationships.pyo
(100.33 KB)
📄
scoping.py
(6.27 KB)
📄
scoping.pyc
(7.5 KB)
📄
scoping.pyo
(7.5 KB)
📄
session.py
(117.07 KB)
📄
session.pyc
(110.77 KB)
📄
session.pyo
(110.6 KB)
📄
state.py
(26.85 KB)
📄
state.pyc
(28.61 KB)
📄
state.pyo
(28.61 KB)
📄
strategies.py
(60.93 KB)
📄
strategies.pyc
(45.88 KB)
📄
strategies.pyo
(45.54 KB)
📄
strategy_options.py
(35.07 KB)
📄
strategy_options.pyc
(36.87 KB)
📄
strategy_options.pyo
(36.87 KB)
📄
sync.py
(5.32 KB)
📄
sync.pyc
(4.48 KB)
📄
sync.pyo
(4.48 KB)
📄
unitofwork.py
(23.43 KB)
📄
unitofwork.pyc
(23.57 KB)
📄
unitofwork.pyo
(23.49 KB)
📄
util.py
(37.64 KB)
📄
util.pyc
(38.09 KB)
📄
util.pyo
(37.94 KB)
Editing: exc.py
# orm/exc.py # Copyright (C) 2005-2017 the SQLAlchemy authors and contributors # <see AUTHORS file> # # This module is part of SQLAlchemy and is released under # the MIT License: http://www.opensource.org/licenses/mit-license.php """SQLAlchemy ORM exceptions.""" from .. import exc as sa_exc, util NO_STATE = (AttributeError, KeyError) """Exception types that may be raised by instrumentation implementations.""" class StaleDataError(sa_exc.SQLAlchemyError): """An 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". .. versionadded:: 0.7.4 """ ConcurrentModificationError = StaleDataError class FlushError(sa_exc.SQLAlchemyError): """A invalid condition was detected during flush().""" class UnmappedError(sa_exc.InvalidRequestError): """Base for exceptions that involve expected mappings not present.""" class ObjectDereferencedError(sa_exc.SQLAlchemyError): """An operation cannot complete due to an object being garbage collected. """ class DetachedInstanceError(sa_exc.SQLAlchemyError): """An attempt to access unloaded attributes on a mapped instance that is detached.""" class UnmappedInstanceError(UnmappedError): """An mapping operation was requested for an unknown instance.""" @util.dependencies("sqlalchemy.orm.base") def __init__(self, base, obj, msg=None): if not msg: try: base.class_mapper(type(obj)) name = _safe_cls_name(type(obj)) msg = ("Class %r is mapped, but this instance lacks " "instrumentation. This occurs when the instance " "is created before sqlalchemy.orm.mapper(%s) " "was called." % (name, name)) except UnmappedClassError: msg = _default_unmapped(type(obj)) if isinstance(obj, type): msg += ( '; was a class (%s) supplied where an instance was ' 'required?' % _safe_cls_name(obj)) UnmappedError.__init__(self, msg) def __reduce__(self): return self.__class__, (None, self.args[0]) class UnmappedClassError(UnmappedError): """An mapping operation was requested for an unknown class.""" def __init__(self, cls, msg=None): if not msg: msg = _default_unmapped(cls) UnmappedError.__init__(self, msg) def __reduce__(self): return self.__class__, (None, self.args[0]) class ObjectDeletedError(sa_exc.InvalidRequestError): """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. """ @util.dependencies("sqlalchemy.orm.base") def __init__(self, base, state, msg=None): if not msg: msg = "Instance '%s' has been deleted, or its "\ "row is otherwise not present." % base.state_str(state) sa_exc.InvalidRequestError.__init__(self, msg) def __reduce__(self): return self.__class__, (None, self.args[0]) class UnmappedColumnError(sa_exc.InvalidRequestError): """Mapping operation was requested on an unknown column.""" class NoResultFound(sa_exc.InvalidRequestError): """A database result was required but none was found.""" class MultipleResultsFound(sa_exc.InvalidRequestError): """A single database result was required but more than one were found.""" def _safe_cls_name(cls): try: cls_name = '.'.join((cls.__module__, cls.__name__)) except AttributeError: cls_name = getattr(cls, '__name__', None) if cls_name is None: cls_name = repr(cls) return cls_name @util.dependencies("sqlalchemy.orm.base") def _default_unmapped(base, cls): try: mappers = base.manager_of_class(cls).mappers except NO_STATE: mappers = {} except TypeError: mappers = {} name = _safe_cls_name(cls) if not mappers: return "Class '%s' is not mapped" % name
Upload File
Create Folder