All Downloads are FREE. Search and download functionalities are using the official Maven repository.

kr.motd.maven.sphinx.dist.lxml.builder$py.class Maven / Gradle / Ivy

There is a newer version: 2.10.0
Show newest version
????1?f$0R(Lorg/python/core/PyFrame;Lorg/python/core/ThreadState;)Lorg/python/core/PyObject;__doc__9
The ``E`` Element factory for generating XML documents.
org/python/core/PyStringfromInterned.(Ljava/lang/String;)Lorg/python/core/PyString;	

org/python/core/PyFrame
	setglobal/(Ljava/lang/String;Lorg/python/core/PyObject;)V
setline(I)V

lxml.etreeorg/python/core/impimportOneAsH(Ljava/lang/String;Lorg/python/core/PyFrame;I)Lorg/python/core/PyObject;
ETsetlocal!
"	functools$java/lang/String&partial(
importFrom\(Ljava/lang/String;[Ljava/lang/String;Lorg/python/core/PyFrame;I)[Lorg/python/core/PyObject;*+
,
basestring.getname.(Ljava/lang/String;)Lorg/python/core/PyObject;01
2org/python/core/Py4setExceptionM(Ljava/lang/Throwable;Lorg/python/core/PyFrame;)Lorg/python/core/PyException;67
58	NameError:org/python/core/PyException<match(Lorg/python/core/PyObject;)Z>?
=@strBjava/lang/ThrowableDunicodeForg/python/core/PyObjectHobjectJElementMakerLElementMaker$1
__module__O__name__QcElement generator factory.

    Unlike the ordinary Element factory, the E factory allows you to pass in
    more than just a tag and some optional attributes; you can also pass in
    text and other elements.  The text is added as either text or tail
    attributes, and elements are inserted at the right spot.  Some small
    examples::

        >>> from lxml import etree as ET
        >>> from lxml.builder import E

        >>> ET.tostring(E("tag"))
        ''
        >>> ET.tostring(E("tag", "text"))
        'text'
        >>> ET.tostring(E("tag", "text", key="value"))
        'text'
        >>> ET.tostring(E("tag", E("subtag", "text"), "tail"))
        'texttail'

    For simple tags, the factory also allows you to write ``E.tag(...)`` instead
    of ``E('tag', ...)``::

        >>> ET.tostring(E.tag())
        ''
        >>> ET.tostring(E.tag("text"))
        'text'
        >>> ET.tostring(E.tag(E.subtag("text"), "tail"))
        'texttail'

    Here's a somewhat larger example; this shows how to generate HTML
    documents, using a mix of prepared factory functions for inline elements,
    nested ``E.tag`` calls, and embedded XHTML fragments::

        # some common inline elements
        A = E.a
        I = E.i
        B = E.b

        def CLASS(v):
            # helper function, 'class' is a reserved word
            return {'class': v}

        page = (
            E.html(
                E.head(
                    E.title("This is a sample document")
                ),
                E.body(
                    E.h1("Hello!", CLASS("title")),
                    E.p("This is a paragraph with ", B("bold"), " text in it!"),
                    E.p("This is another paragraph, with a ",
                        A("link", href="http://www.python.org"), "."),
                    E.p("Here are some reserved characters: ."),
                    ET.XML("

And finally, here is an embedded XHTML fragment.

"), ) ) ) print ET.tostring(page) Here's a prettyprinted version of the output from the above script:: This is a sample document

Hello!

This is a paragraph with bold text in it!

This is another paragraph, with link.

Here are some reserved characters: <spam&egg>.

And finally, here is an embedded XHTML fragment.

For namespace support, you can pass a namespace map (``nsmap``) and/or a specific target ``namespace`` to the ElementMaker class:: >>> E = ElementMaker(namespace="http://my.ns/") >>> print(ET.tostring( E.test )) >>> E = ElementMaker(namespace="http://my.ns/", nsmap={'p':'http://my.ns/'}) >>> print(ET.tostring( E.test )) SNoneUorg/python/core/PyFunctionW f_globalsLorg/python/core/PyObject; YZ [ __init__$2to_cell(II)V ^_ `getlocal(I)Lorg/python/core/PyObject; bc d getglobal f1 g_isnot6(Lorg/python/core/PyObject;)Lorg/python/core/PyObject; ij Ik __nonzero__()Z mn Io{q_add sj It}v _namespacex __setattr__ z I{dict}__call__S(Lorg/python/core/ThreadState;Lorg/python/core/PyObject;)Lorg/python/core/PyObject; ? I?_nsmap? __debug__?callable? UZ 5?AssertionError? makeExceptionS(Lorg/python/core/PyObject;Lorg/python/core/PyObject;)Lorg/python/core/PyException; ?? 5? _makeelement?Element? __getattr__ ?1 I?getderef ?c ?setderef(ILorg/python/core/PyObject;)V ?? ?org/python/core/PyDictionary? EmptyObjectsorg/python/core/PyObject; ?? 5?([Lorg/python/core/PyObject;)V ?? ?? add_text$3 newInteger(I)Lorg/python/core/PyInteger; ?? 5? __getitem__ ?j I?tail?? IndexError?text?f_lastiI ?? ?lxml/builder$py?Lorg/python/core/PyCode; ?? ??j(Lorg/python/core/PyObject;[Lorg/python/core/PyObject;Lorg/python/core/PyCode;Lorg/python/core/PyObject;)V ?? X? !? ? add_cdata$4 ValueError?? ?@BnewCode?(I[Ljava/lang/String;Ljava/lang/String;Ljava/lang/String;IZZLorg/python/core/PyFunctionTable;I[Ljava/lang/String;[Ljava/lang/String;II)Lorg/python/core/PyCode; DE 5F ? ?H>typemapK namespaceM makeelementOadd_textQ add_cdataSadd_dictUelemWitemYcdata[k]v_tagachildrenctebasetypeggetMain()Lorg/python/core/PyCode;main([Ljava/lang/String;)V? ?8 ?n ij ?porg/python/core/CodeLoaderrcreateSimpleBootstrap9(Lorg/python/core/PyCode;)Lorg/python/core/CodeBootstrap; tu svrunMain5(Lorg/python/core/CodeBootstrap;[Ljava/lang/String;)V xy 5zgetCodeBootstrap!()Lorg/python/core/CodeBootstrap;#org/python/core/PyRunnableBootstrap~)getFilenameConstructorReflectionBootstrap2(Ljava/lang/Class;)Lorg/python/core/CodeBootstrap; ?? ? call_functionS(ILorg/python/core/PyFrame;Lorg/python/core/ThreadState;)Lorg/python/core/PyObject;  ?? N ?? ] ?? ? ?? ? ?? ? ??  ?? # ??org/python/core/PyRunnable? Lorg/python/compiler/APIVersion;value%Lorg/python/compiler/MTime;`9 r?Lorg/python/compiler/Filename;V/home/trustin/Workspaces/sphinx-maven-plugin/target/update-sphinx/dist/lxml/builder.pyorg/python/core/ThreadState??java/lang/Object?[Ljava/lang/String;?CodeLineNumberTableStackMap SourceFileRuntimeVisibleAnnotations!?:? >??N?]????????#? ??-+? ?+&?? W+(?+?N+ -?#N+*?%?'N-)S-+?-N-2:+)?#:+-?+/?3W?3+?9N-+;?3?A?+/?+C?3:+/?#:?-?+2?+G?3W?3+?9N-+;?3?A?+4?+C?3:+G?#:?-?+7??IN+K?3-__SM-?+?/:+M?#:-?5+?+M?3,??N+7-?#N+?????WdgE???E?& &(*-/247??zg???E???=????????E???=????N???+P+R?3?#+T? ?#+??T? W+???IN+V?3-__S+V?3-__S+V?3-__S+V?3-__S?XY+?\-???N+-?#N+Ƕ??N?XY+?\-?!??N+"-?#N+???N?XY+?\-?%??N+&-?#N+?)??????]?? S+?a+??+?eN+V?h-_?lN?p?0+??r? +?e?uw? ?uN+?ey-?|N?+??+V?hN+?ey-?|N+??+?e?p?*+??+~?h,+?e??N+?e?-?|N?+??+V?hN+?e?-?|N+??+?eN+V?h-_?lN?p?V+??+??h?p?&+??h,+?e???p???+??h_???+??+?eN+?e?-?|N?#+??+ ?h???N+?e?-?|N+??+???p?%+??+~?h,+????N+-??N?+????Y????N+-??N+????N?XY+?\-????N+-??N+????N?XY+?\-????N+-??N+??+C?hN+??-_??N?p?$+??+?eN+??+C?h-??N?+??+G?hN+??-_??N?p?$+??+?eN+??+G?h-??N?+??+ ?hܶ?N+??-_??N?p?*+??+?eN+??+ ?hܶ?-??N?+????N?XY+?\-???IN-+??S-??N+-??N+¶+~?hN+??-_??N?p?%+ö+?eN+??+~?h-??N?+Ŷ+??N+?e-?|N+??????f??????????????????????????? S??n??????????5??U????????-??n?????/????%?+??+?e???????Y?p? W?? +?e?uN+?e?????-?|N?Q+?9N-+??h?A?=+??+?e???Y?p? W?? +?e?u:+?e??|:?-?+?????BEE? ???_%??IE??Eu??=I???=???=???a+??+?e????p?*+??+ɶh,˸ +?e????ζ??ѿ+??+?eN+?e?-?|N+??????????>????s?+??+?e߶?N+-??N+??+?e??,???N????:2:+??:2:+??:+??+?h,+?e+/?h??p?&+??+?e:+?e+?e??:?D+??+??+?h,+?e????,+V?h+?e??:+?e+?e??:+??-??:??C+?????????????B6??II???II????I?? |+ȶ+?e??N+-??N+ʶ+?ey??N+V?h-_?lNY?p?W+?e????Nr? -_?N?p?(+˶+?ey??+?e?uN+-??N?+̶+?e???,?IN+?e-__S+?e???-__S?': S-? NN+-??N+Ͷ+?e?p?*+ζ+?e+~?h??,+?e+?e??W?+ж+?e??N?9+??+Ѷ+??h,+?e???p?$+Ҷ+?e,??:+??:?+Ӷ+?e??,+?h,+?e????:+??:+Զ+?e:+V?h_?:?p?'+ն+ ?h??,+?e???p?#+ֶ+?e??,+?e??W?Y+ض+?h,+?e??????:?^+??+ڶ+?e??,+?e??:+??:+۶+?e:+V?h_?l:?p? ?d?+ض??:???+޶+?h,? ?Y?IY+?h,+?e??R??SY+?eS??ζ??ѿ?+?+?e,+?e+?e??:+ ??:+?+ ?e?p?<+?+?e??,+?h,+ ?e????,+?e+ ?e??W?+ж-??:???+?+?eN+??-??^????????????????????????? [??I??? ??? ??IIf??II??II%??IIII}E???III???IIII???IIIV??I?#?;#+?+)?h,+?e+?e??N+??-????8?? ?*?=*?A?'M,+C?A?G?I?'M,+M7?A?G?+?'M,JS,LS,NS, S,PS,RS,TS,VS,+??A?'M,LS,?G??'M,XS,ZS,+R??A?G???'M,XS,\S,+T??A?G???'M,XS,ZS,?S,^S,`S,+V??A?'M,LS,?G?? ?'M,JS,bS,dS,?S,LS,XS,ZS,fS,hS, `S,+"??A?G?!?'M,JS,bS,+&??A?G?%?ij??I? kl?!??Ym?o?q?w*?{? |}????????KV*,-?P048<@DHL??????????????????????????? 4????8????<????@????D????H????L????P????T?????????I???J???s?




© 2015 - 2024 Weber Informatics LLC | Privacy Policy