B
    ADbx                 @   s&   d Z ddlmZ ddlZdddZdS )	z_This is a public location to maintain contributed
   utilities to extend the basic Tree class.
    )unicode_literalsNcircledigraphc          	   C   s  g g  }}| j rx| j| jdD ]z}| | j}d| d d | | j d | d }|| x:| |D ],}	|	j}
|d| d d d |
 d  qjW q W t|ddh}|	|d	  x|D ]}|	d
| d  qW |	d x|D ]}	|	d
|	 d  qW |	d W dQ R X dS )z;Exports the tree in the dot format of the graphviz software)mode"z	 [label="z	", shape=]z -> wzutf-8z tree {
	
}N)
nodesZexpand_treeZWIDTHZidentitytagappendZchildrencodecsopenwrite)ZtreefilenameshapeZgraphr   ZconnectionsnZnidstatecZcidf r   <G:\easytimepro\master/mysite/admin\tree_structure\plugins.pyexport_to_dot   s"    

&
*


r   )r   r   )__doc__Z
__future__r   r   r   r   r   r   r   <module>   s   