|
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/management/commands/ |
Upload File : |
�
(��Pc @ s� d Z d d l m Z d d l m Z d d l Z d d l Z d d l m Z d d l m
Z
d d l m Z m
Z
d e f d � � YZ d S(
s2
Outputs a graphviz dot file of the dependencies.
i����( t print_function( t make_optionN( t BaseCommand( t no_style( t
Migrationst all_migrationst Commandc B s e Z d Z d � Z RS( sD Outputs a GraphViz dot file of all migration dependencies to stdout.c
K s� t j � d d d d d d d d g } d } t j d
d � } t d � x� t � D]� } t d
| j � � t d | | � xz | D]r } d | j � | j � f } t j d d | � } d j
| j | � � } t d | j � | j � | f � q� Wt d � | d t | � } qT Wx� t � D]� } x~ | D]v } xm | j
D]b } d } | j � | j � k rsd } n t d | j � | j � | j � | j � | f � qFWq6Wq)Wt d � d S( Nt crimsont darkgreent
darkgoldenrodt navyt brownt
darkoranget
aquamarinet
bluevioleti t widthi( s digraph G {s subgraph %s {s node [color=%s];s %s - %ss _+t s \ns "%s.%s" [label="%s"];s }i s [weight=2.0]s [style=bold]s "%s.%s" -> "%s.%s" %s;t }( R t calculate_dependenciest textwrapt TextWrappert printR t app_labelt namet ret subt joint wrapt lent dependencies(
t selft optionst colorst color_indext wrappert
migrationst migrationt labelt othert attrs( ( sM /usr/lib/python2.7/site-packages/south/management/commands/graphmigrations.pyt handle s:
!
( t __name__t
__module__t helpR( ( ( ( sM /usr/lib/python2.7/site-packages/south/management/commands/graphmigrations.pyR s ( t __doc__t
__future__R t optparseR R R t django.core.management.baseR t django.core.management.colorR t south.migrationR R R ( ( ( sM /usr/lib/python2.7/site-packages/south/management/commands/graphmigrations.pyt <module> s