Ñò
u©¿Uc @ s† d Z d d k Z d d k l Z d d k l Z d d k l Z d d k l Z d d k l Z d e Z
d e f d
„ ƒ YZ d S( sc
Class to handle activies associated with reading and modifying default xml
used by the installer
iÿÿÿÿN( t DTD_VERSION_AI( t _( t fetch_xpath_node( t etree( t StringIOs@
t XMLDefaultDatac B sA e Z d Z d Z d Z d „ Z e d „ ƒ Z e d „ ƒ Z RS( sX The default xml data object that all work on the profiles is performed
against
c C s: t i ƒ } | d j o% t i t t ƒ ƒ | _ d | _ n t i | ƒ | _ | | _ t | i ƒ d j o( x% | i D] } t
i i | ƒ qy Wn d } t
| i | ƒ | _ | i d j ot t i t t ƒ ƒ } t
i i t i | i d t ƒƒ t i | d t ƒ} t t d ƒ h | d 6| d 6ƒ ‚ n d S( Nt DEFAULT_XML_EMPTYi s /auto_install/ai_instancet pretty_prints] not found: %(filename)s does not conform to the expected layout of:
%(layout)st filenamet layout( R t XMLParsert Nonet parseR R t _treet _namet lent error_logt syst stderrt writeR t _ai_instancet tostringt Truet
ValueErrorR ( t selft default_xml_filenamet parsert errt xpatht treet expected_layout( ( s ../default_xml.pyt __init__? s&