Did I find the right examples for you? yes no

All Samples(12)  |  Call(4)  |  Derive(0)  |  Import(8)

src/a/k/Akara-2.0.0a4/demo/etc/MoinMoin/action/atom_rc.py   Akara(Download)
from MoinMoin.wikixml.util import RssGenerator
 
from amara.writers.struct import structencoder, E, E_CURSOR, NS, ROOT, RAW
from amara.namespaces import ATOM_NAMESPACE
 
        f = output.cofeed(
            ROOT(
                NS(u'', ATOM_NAMESPACE),
                NS(u'wiki', RSSWIKI_NAMESPACE),
                E_CURSOR((ATOM_NAMESPACE, u'feed'),

src/a/k/Akara-2.0.0a4/demo/etc/MoinMoin/formatter/application_xml.py   Akara(Download)
 
from amara import tree
from amara.writers.struct import structwriter, E, NS, ROOT, RAW
from amara.bindery.html import markup_fragment
from amara.lib import inputsource

src/a/k/Akara-2.0.0a4/lib/demo/moinrest.py   Akara(Download)
import amara
from amara import bindery
from amara.writers.struct import structencoder, E, NS, ROOT, RAW
from amara.bindery.html import parse as htmlparse
from amara.bindery.model import examplotron_model, generate_metadata

src/a/k/Akamu-0.7/lib/demo/gsp_validator.py   Akamu(Download)
from amara.lib.util                 import *
from amara.xslt                     import transform
from amara.writers.struct           import structwriter, E, NS, ROOT, RAW
from akara.services                 import simple_service, service
from akara                          import response

src/a/k/Akamu-0.7/lib/demo/xslt.py   Akamu(Download)
from akara.services import simple_service
from cStringIO import StringIO
from amara.writers.struct import structwriter, E, NS, ROOT
from amara.lib import U
from akara import request

src/a/k/Akamu-0.7/lib/demo/wheezy.py   Akamu(Download)
from akara.services import simple_service
from cStringIO import StringIO
from amara.writers.struct import structwriter, E, NS, ROOT
from amara.lib import U
from akara import request

src/a/m/Amara-2.0.0/test/writers/test_struct.py   Amara(Download)
import amara
from amara.lib import treecompare
from amara.writers.struct import structwriter, structencoder, E, NS, ROOT, RAW, E_CURSOR
#from amara import tree
#from amara import bindery
def test_coroutine_with_nsdecls1():
    EXPECTED = """<a xmlns="urn:bogus:x"><b attr1="val1"><c>1</c><c>2</c><c>3</c></b></a>"""
    XNS = u'urn:bogus:x'
    output = structencoder()
    f = output.cofeed(ROOT(E(u'a', NS(None, XNS), E_CURSOR(u'b', {u'attr1': u'val1'}))))
    XNS = u'urn:bogus:x'
    output = structencoder()
    f = output.cofeed(ROOT(E(u'a', NS(None, XNS), E_CURSOR((XNS, u'b'), {u'attr1': u'val1'}))))
    f.send(E((XNS, u'c'), u'1'))
    f.send(E((XNS, u'c'), u'2'))

src/a/k/Akamu-0.7/test/test_diglot.py   Akamu(Download)
from amara.namespaces import *
from amara import tree
from amara.writers.struct import structwriter, E, NS, ROOT
from amara.lib import U