|
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 : /usr/lib/python2.7/site-packages/redhat_support_lib/utils/ |
Upload File : |
�
f�Tc @ sn d d l m Z d d l m Z m Z d d l Z d d l Z d e f d � � YZ d e f d � � YZ d S( i����( t ReflectionHelper( t paramst reportNt ParseHelperc B s� e Z d Z e d � � Z e d � � Z e d � � Z e d � � Z e d � � Z e d � � Z e g d � � Z
e d � � Z e g d � � Z e g d
� � Z
e g d � � Z RS( s Provides parsing capabilitiesc C s� t j t j d t | � � r: t | d � r: | j } n t | � j j � } t j � } | j
d � | j | d d | j | � d d �| j
� S( s0 Parse entity to corresponding XML representations) redhat_support_lib.infrastructure.brokerst
superclasss8 <?xml version="1.0" encoding="UTF-8" standalone="yes"?>
i t name_t
namespacedef_s, xmlns:tns="http://www.redhat.com/gss/strata"( R t isModuleMembert syst modulest typet hasattrR t __name__t lowert StringIOt writet exportt getXmlTypeInstancet getvalue( t selft entityt type_namet output( ( sH /usr/lib/python2.7/site-packages/redhat_support_lib/utils/parsehelper.pyt toXml s
c C s^ | j � } xK t j j � D]: \ } } | j j � | k sO | j � | k r | j Sq W| S( N( R
R t
_rootClassMapt itemsR ( R R t tnt kt v( ( sH /usr/lib/python2.7/site-packages/redhat_support_lib/utils/parsehelper.pyt getXmlWrapperType* s
'c C sI | j � } x6 t j j � D]% \ } } | j j � | k r | Sq W| S( N( R
R R R R ( R R R R R ( ( sH /usr/lib/python2.7/site-packages/redhat_support_lib/utils/parsehelper.pyR 2 s
c C sv | rr | d k rr | j � } t j j � } xB | D]7 \ } } | j j � | k sg | j � | k r4 | Sq4 Wn d S( Nt ( R
R R R R t None( R R R R R R ( ( sH /usr/lib/python2.7/site-packages/redhat_support_lib/utils/parsehelper.pyt
getXmlType: s 'c C s7 | j | � } | j d � r3 | d t | � d !S| S( Nt si i ( R t endswitht len( R R t instance( ( sH /usr/lib/python2.7/site-packages/redhat_support_lib/utils/parsehelper.pyt getSingularXmlTypeInstanceD s c C s
| | � S( s1 Encapsulates the entity with the broker instance.( ( R t fromItemt toType( ( sH /usr/lib/python2.7/site-packages/redhat_support_lib/utils/parsehelper.pyR'