|
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 : /lib/python2.7/site-packages/south/hacks/ |
Upload File : |
�
��MTc @ s� d Z d d l Z d d l m Z d d l m Z d d l m Z d d l m Z d d l
m Z d d l
m Z d d l m Z d
e f d � � YZ d d d
� � YZ d S( s*
Hacks for the Django 1.0/1.0.2 releases.
i����N( t settings( t BaseDatabaseCreation( t cache( t
management( t Command( t
SortedDict( t string_typest SkipFlushCommandc B s e Z d � Z RS( c K s d S( N( ( t selft options( ( s: /usr/lib/python2.7/site-packages/south/hacks/django_1_0.pyt
handle_noargs s ( t __name__t
__module__R
( ( ( s: /usr/lib/python2.7/site-packages/south/hacks/django_1_0.pyR s t Hacksc B sY e Z d � Z d � Z d � Z d � Z d � Z d � Z d � Z d � Z d � Z
RS( c C sX t | � } | r4 t | d t � s4 t d � � n | t j t _ t _ | j � d S( s\
Sets Django's INSTALLED_APPS setting to be effectively the list passed in.
i s= The argument to set_installed_apps must be a list of strings.N( t listt
isinstanceR t AssertionErrorR t INSTALLED_APPSt OLD_INSTALLED_APPSt _redo_app_cache( R t apps( ( s: /usr/lib/python2.7/site-packages/south/hacks/django_1_0.pyt set_installed_apps s "c C s t j t _ | j � d S( s:
Undoes the effect of set_installed_apps.
N( R R R R ( R ( ( s: /usr/lib/python2.7/site-packages/south/hacks/django_1_0.pyt reset_installed_apps* s c C sb t t _ t j d k r! t � n i t _ g t _ t � t _ t � t _
i t _ t j � d S( sQ
Used to repopulate AppCache after fiddling with INSTALLED_APPS.
i i N( i i (
t FalseR t loadedt djangot VERSIONt sett handledt postponedR t app_storet
app_modelst
app_errorst _populate( R ( ( s: /usr/lib/python2.7/site-packages/south/hacks/django_1_0.pyR 2 s ! c C s t j i | _ t _ d S( st
Clears the contents of AppCache to a blank state, so new models
from the ORM can be added.
N( R R t old_app_models( R ( ( s: /usr/lib/python2.7/site-packages/south/hacks/django_1_0.pyt clear_app_cache? s c C s | j t _ i t _ d S( s:
Reversed the effects of clear_app_cache.
N( R"