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 :  /proc/self/root/lib/python2.7/site-packages/south/migration/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Current File : //proc/self/root/lib/python2.7/site-packages/south/migration/migrators.pyc
�
,�MTc@s�ddlmZddlmZmZddlZddlZddlZddlZddlm	Z	ddl
mZddlm
Z
ddlmZddlZddlmZdd	lmZdd
lmZddlmZddlmZmZd
efd��YZdefd��YZdefd��YZdefd��YZ defd��YZ!defd��YZ"defd��YZ#dS(i����(tprint_function(tcopytdeepcopyN(tcall_command(tloaddata(tmodels(tVERSION(t
exceptions(tDEFAULT_DB_ALIAS(tMigrationHistory(t
ran_migration(tStringIOt	iteritemstMigratorcBs�eZded�Zed��Zd�Zed��Zd�Zed��Z	d�Z
d�Zed	��Zed
��Z
dd�Zd
�Zd�Zd�Zd�Zd�ZRS(icCs"t|�|_t|�|_dS(N(tintt	verbositytbooltinteractive(tselfRR((s=/usr/lib/python2.7/site-packages/south/migration/migrators.pyt__init__scCs
t��dS(N(tNotImplementedError(ttarget((s=/usr/lib/python2.7/site-packages/south/migration/migrators.pyttitlescCs#|jrt|j|��ndS(N(RtprintR(RR((s=/usr/lib/python2.7/site-packages/south/migration/migrators.pytprint_titles	cCs
t��dS(N(R(R((s=/usr/lib/python2.7/site-packages/south/migration/migrators.pytstatus#scCs/|j|�}|jr+|r+t|�ndS(N(RRR(Rt	migrationR((s=/usr/lib/python2.7/site-packages/south/migration/migrators.pytprint_status'scCs
t��dS(N(R(R((s=/usr/lib/python2.7/site-packages/south/migration/migrators.pytorm,scCs|j|j�|j��S(N(t_wrap_directiont	backwardstprev_orm(RR((s=/usr/lib/python2.7/site-packages/south/migration/migrators.pyR0scCs
t��dS(N(R(RR((s=/usr/lib/python2.7/site-packages/south/migration/migrators.pyt	direction3scs9tj��}t|d�dkr)�S��fd�S(Niics
���S(N(((R R(s=/usr/lib/python2.7/site-packages/south/migration/migrators.pyt<lambda><s(tinspectt
getargspectlen(R Rtargs((R Rs=/usr/lib/python2.7/site-packages/south/migration/migrators.pyR6scCs
t��dS(N(R(Rtdatabase((s=/usr/lib/python2.7/site-packages/south/migration/migrators.pytrecord>stcCsd|S(Ns� ! Error found during real run of migration! Aborting.

 ! Since you have a database that does not support running
 ! schema-altering statements in transactions, we have had 
 ! to leave it in an interim state between migrations.
%s
 ! The South developers regret this has happened, and would
 ! like to gently persuade you to consider a slightly
 ! easier-to-deal-with DBMS (one that supports DDL transactions)
 ! NOTE: The error which caused the migration to fail is further up.((RRt
extra_info((s=/usr/lib/python2.7/site-packages/south/migration/migrators.pytrun_migration_errorBs
cCs�|j|�}tjjj�yI|�tjjj�tt|d|�t�sg|j||�nWnMtjjj	�tjjj
s�t|j|��ntd|��n0Xytjjj
�Wntd|��nXdS(Nt_wrappersError in migration: %ss$Error during commit in migration: %s(R tsouthtdbtstart_transactiontexecute_deferred_sqlt
isinstancetgetattrtDryRunMigratorR'trollback_transactionthas_ddl_transactionsRR*tcommit_transaction(RRR&tmigration_function((s=/usr/lib/python2.7/site-packages/south/migration/migrators.pyt
run_migrationPs$cCs}|j|�tjj_tt|d|�t�smtjjjsmtd|dt�}|j	||�qmn|j	||�S(NR+tmigratortignore_fail(
RR,R-tcurrent_ormR0R1R2R4tFalseR7(RRR&tdry_run((s=/usr/lib/python2.7/site-packages/south/migration/migrators.pytrunhscCsMtjdd|j�d|d|jjj�d|jd|jd|�dS(NtappRtmethodRRR-(	R
tsendtNonet	app_labelt	__class__t__name__tlowerRR(RRR&((s=/usr/lib/python2.7/site-packages/south/migration/migrators.pytsend_ran_migrationus		cCsK|jj}|j�}|j|�|j||�}|j||�|S(sL
        Runs the specified migration forwards/backwards, in order.
        (t
migrationst_migrationstnameRR=RF(RRR&R>tmigration_nametresult((s=/usr/lib/python2.7/site-packages/south/migration/migrators.pytmigrate~s
cCs
t��dS(N(R(RRRGR&((s=/usr/lib/python2.7/site-packages/south/migration/migrators.pytmigrate_many�s(RDt
__module__R;RtstaticmethodRRRRRRR RR'R*R7R=RFRLRM(((s=/usr/lib/python2.7/site-packages/south/migration/migrators.pyR
s 						
			tMigratorWrappercBseZd�Zd�ZRS(cOsyt|�|_tg|jjD]*}|jd�s|t||�f^q�}|jjj|�||jjd<dS(Nt__R+(Rt	_migratortdictRCt__dict__t
startswithR1tupdate(RR8R%tkwargstkt
attributes((s=/usr/lib/python2.7/site-packages/south/migration/migrators.pyR�s-cCst|j|�S(N(R1RR(RRI((s=/usr/lib/python2.7/site-packages/south/migration/migrators.pyt__getattr__�s(RDRNRRZ(((s=/usr/lib/python2.7/site-packages/south/migration/migrators.pyRP�s	R2cBs/eZed�Zd�Zd�Zd�ZRS(cOs&tt|�j||�||_dS(N(tsuperR2Rt_ignore_fail(RR9R%RW((s=/usr/lib/python2.7/site-packages/south/migration/migrators.pyR�scCs�|j�r*|jr&td|�ndSx3ttjj�D]\}}ttjj|_q=Wt	tjjj
�}|jr�ttjjj
tjj_
}ntjjj�}tjjj�|j|�}zAy|�tjjj�Wntj|tj���nXWdtjjj�|jr@|tjj_
ntjjj|�x3ttjj�D]\}}ttjj|_qfW|tjj_
XdS(Ns+ - Migration '%s' is marked for no-dry-run.(t
no_dry_runRRRR,R-tdbstTrueR<Rt_constraint_cacheR\R;tdebugtget_pending_createsR.R R/RtFailedDryRuntsystexc_infotrollback_transactions_dry_runtclear_run_data(RRRIR-tconstraint_cachet	old_debugtpending_createsR6((s=/usr/lib/python2.7/site-packages/south/migration/migrators.pyt_run_migration�s2		" 	cCs<y|j|�Wn$tjk
r7|jr1tS�nXdS(N(RkRRcR\R;(RRR&((s=/usr/lib/python2.7/site-packages/south/migration/migrators.pyR7�s	cOsdS(N((RR%RW((s=/usr/lib/python2.7/site-packages/south/migration/migrators.pyRF�s(RDRNR_RRkR7RF(((s=/usr/lib/python2.7/site-packages/south/migration/migrators.pyR2�s		tFakeMigratorcBseZd�Zd�ZRS(cCs*|j||�|jr&td�ndS(Ns
   (faked)(R'RR(RRR&((s=/usr/lib/python2.7/site-packages/south/migration/migrators.pyR=�s	cOsdS(N((RR%RW((s=/usr/lib/python2.7/site-packages/south/migration/migrators.pyRF�s(RDRNR=RF(((s=/usr/lib/python2.7/site-packages/south/migration/migrators.pyRl�s	tLoadInitialDataMigratorcBs/eZdd�Zd�Zd�Zd�ZRS(tdefaultcCsv|dks||jdkr#dS|jrCtd|j��ntdkrb|j||�n|j||�dS(Ni����s - Loading initial data for %s.ii(ii(RARGRRRBtDJANGO_VERSIONtpre_1_6tpost_1_6(RRR-((s=/usr/lib/python2.7/site-packages/south/migration/migrators.pytload_initial_data�s	csdtj}�fd�}|t_|t_z tddd|jd|�Wd|t_|t_XdS(Ncstj�j��gS(N(Rtget_appRB((R(s=/usr/lib/python2.7/site-packages/south/migration/migrators.pyR!�sRtinitial_dataRR&(Rtget_appsRRR(RRR-told_get_appstnew_get_apps((Rs=/usr/lib/python2.7/site-packages/south/migration/migrators.pyRp�s			 	cs�ddl}|jjjj}|jjjj����fd��_�|jjj_z tddd|jd|�Wd||jjj_XdS(Ni����cs�j�j��gS(N(RsRB((t	new_cacheR(s=/usr/lib/python2.7/site-packages/south/migration/migrators.pyR!�sRRtRR&(	tdjango.db.models.loadingR-RtloadingtcachetAppCacheRuRR(RRR-tdjangot	old_cache((RxRs=/usr/lib/python2.7/site-packages/south/migration/migrators.pyRq�s cCsD|j}|jj||||�}|r@|j|d|�ntS(NR-(RRRCRMRrR_(RRRGR&R8RK((s=/usr/lib/python2.7/site-packages/south/migration/migrators.pyRM�s
	(RDRNRrRpRqRM(((s=/usr/lib/python2.7/site-packages/south/migration/migrators.pyRm�s	
	tForwardscBs}eZdZdZed��Zed��Zed��Zd�ZeZ	ed��Z
d�Zdd	�Zd
�Z
RS(s:
    Runs the specified migration forwards, in order.
    tforwardscCs0|dk	rd|j�Sts,td��dS(Ns - Migrating forwards to %s.s$You cannot migrate forwards to zero.(RARIR;tAssertionError(R((s=/usr/lib/python2.7/site-packages/south/migration/migrators.pyRscCsd|S(Ns > %s((R((s=/usr/lib/python2.7/site-packages/south/migration/migrators.pyRscCs
|j�S(N(R(R((s=/usr/lib/python2.7/site-packages/south/migration/migrators.pyRscCs|j|j�|j��S(N(RR�R(RR((s=/usr/lib/python2.7/site-packages/south/migration/migrators.pyR�scCs�tj||�}y ddlm}|�|_Wn#tk
rWtjj�|_nX|tkrw|j	d|�n
|j	�dS(Ni����(tnowtusing(
R	t
for_migrationtdjango.utils.timezoneR�tappliedtImportErrortdatetimetutcnowRtsave(RR&R'R�((s=/usr/lib/python2.7/site-packages/south/migration/migrators.pyR' s
cCs�|j�rdStjjjtjjj}}ttjj_tjj_tj}t�t_z2y!|j	|��tjj
�SWn
�nXWd||tjj_tjj_|t_XdS(Ns:   (migration cannot be dry-run; cannot discover commands)(R]R,R-RaR<R_RdtstdoutRRtgetvalue(RRRitold_dry_runR�((s=/usr/lib/python2.7/site-packages/south/migration/migrators.pytformat_backwards/s	R(cCs2d|j|�|f}tt|�j||�S(Ns+
! You *might* be able to recover with:%s%s(R�R[RR*(RRR)((s=/usr/lib/python2.7/site-packages/south/migration/migrators.pyR*@scCsaz7x0|D](}|j||�}|tkr
tSq
WWdtjjjd|jd|j�XtS(NRR(RLR;R,R-tsend_pending_create_signalsRRR_(RRRGR&RRK((s=/usr/lib/python2.7/site-packages/south/migration/migrators.pyRMHs
(RDRNt__doc__ttorunRORRRR�R R'R�R*RM(((s=/usr/lib/python2.7/site-packages/south/migration/migrators.pyRs		t	BackwardscBsbeZdZdZed��Zed��Zed��Zej	Z
ed��Zd�ZRS(s;
    Runs the specified migration backwards, in order.
    RcCs"|dkrdSd|j�SdS(Ns% - Migrating backwards to zero state.s( - Migrating backwards to just after %s.(RARI(R((s=/usr/lib/python2.7/site-packages/south/migration/migrators.pyR[scCsd|S(Ns < %s((R((s=/usr/lib/python2.7/site-packages/south/migration/migrators.pyRbscCs
|j�S(N(R(R((s=/usr/lib/python2.7/site-packages/south/migration/migrators.pyRfscCsQtj||�}|jdk	rM|tkr@|jd|�qM|j�ndS(NR�(R	R�tidRARtdelete(RR&R'((s=/usr/lib/python2.7/site-packages/south/migration/migrators.pyR'ls
cCs%x|D]}|j||�qWtS(N(RLR_(RRRGR&R((s=/usr/lib/python2.7/site-packages/south/migration/migrators.pyRMws
(
RDRNR�R�RORRRR
RR R'RM(((s=/usr/lib/python2.7/site-packages/south/migration/migrators.pyR�Us	($t
__future__RRRR�R"Rdt	tracebacktdjango.core.managementRtdjango.core.management.commandsRt	django.dbRR}RRotsouth.dbR,RRtsouth.modelsR	t
south.signalsR
tsouth.utils.py3RRtobjectR
RPR2RlRmRR�(((s=/usr/lib/python2.7/site-packages/south/migration/migrators.pyt<module>s,w
01O

https://t.me/AnonymousX5 - 2025