Why Gemfury? Push, build, and install  RubyGems npm packages Python packages Maven artifacts PHP packages Go Modules Debian packages RPM packages NuGet packages

Repository URL to install this package:

Details    
dmapi / usr / lib / python2.7 / dist-packages / dmapi / db / sqlalchemy / models.pyc
Size: Mime:
ó
}eµcc@s5dZddlmZddlmZddlmZddlmZm	Z	m
Z
mZmZm
Z
mZmZddlmZddlmZddlmZdd	lmZmZmZmZmZdd
lmZejZeƒZd„Zdejej fd
„ƒYZ!dee!ej"fd„ƒYZ#dS(s"
SQLAlchemy models for nova data.
iÿÿÿÿ(tcfg(tmodels(t	timeutils(tColumntIndextIntegert
BigIntegertEnumtStringtschematUnicode(t
MEDIUMTEXT(tdeclarative_base(torm(t
ForeignKeytDateTimetBooleantTexttFloat(ttypescCstƒjtƒdƒS(Ntmysql(Rtwith_variantR(((s>/usr/lib/python2.7/dist-packages/dmapi/db/sqlalchemy/models.pyt
MediumTextst	DmapiBasecBseZdZd„ZRS(cCs2tjƒ}|j|dtƒ}|j|ƒ|S(s\Implement a safe copy.copy().

        SQLAlchemy-mapped objects travel with an object
        called an InstanceState, which is pegged to that object
        specifically and tracks everything about that object.  It's
        critical within all attribute operations, including gets
        and deferred loading.   This object definitely cannot be
        shared among two instances, and must be handled.

        The copy routine here makes use of session.merge() which
        already essentially implements a "copy" style of operation,
        which produces a new instance with a new InstanceState and copies
        all the data along mapped attributes without using any SQL.

        The mode we are using here has the caveat that the given object
        must be "clean", e.g. that it has no database-loaded state
        that has been updated and not flushed.   This is a good thing,
        as creating a copy of an object including non-flushed, pending
        database state is probably not a good idea; neither represents
        what the actual row looks like, and only one should be flushed.

        tload(R
tSessiontmergetFalsetexpunge(tselftsessiontcopy((s>/usr/lib/python2.7/dist-packages/dmapi/db/sqlalchemy/models.pyt__copy__ s
N(t__name__t
__module__tNonetmetadataR (((s>/usr/lib/python2.7/dist-packages/dmapi/db/sqlalchemy/models.pyRstServicecBs.eZdZdZejdddddƒejdddddƒed	d
deƒfZe	e
deƒZe	ed
ƒdeƒZ
e	edƒƒZe	edƒƒZe	edƒƒZe	e
deddƒZe	edeƒZe	edƒƒZe	edeƒZe	edeƒZe	ed
ƒƒZRS(s'Represents a running service on a host.tservicesthostttopictdeletedtnamet uniq_services0host0topic0deletedtbinaryt!uniq_services0host0binary0deletedtservices_uuid_idxtuuidtuniquetprimary_keyi$tnullableiÿtdefaulti(R!R"t__doc__t
__tablename__R	tUniqueConstraintRtTruet__table_args__RRtidRR/R'R,R(Rtreport_countRtdisabledtdisabled_reasonRtlast_seen_uptforced_downtversion(((s>/usr/lib/python2.7/dist-packages/dmapi/db/sqlalchemy/models.pyR%@s$N($R4toslo_configRtoslo_db.sqlalchemyRt
oslo_utilsRt
sqlalchemyRRRRRRR	R
tsqlalchemy.dialects.mysqlRtsqlalchemy.ext.declarativeRR
RRRRRtdmapi.db.sqlalchemyRtCONFtBASERtTimestampMixint	ModelBaseRtSoftDeleteMixinR%(((s>/usr/lib/python2.7/dist-packages/dmapi/db/sqlalchemy/models.pyt<module>s:(				#