Example #1
0
 def toxml(self, response, _type='text/xml'):
   output = Xml.toxml(self)
   response('200 OK', [('Content-type', _type), ('Content-length', '%s' % len(output))])
   return [output]
Example #2
0
 def __init__(self, *elems, **attrs):
   Xml.__init__(self, 
                self.tag, 
                *elems, 
                **attrs)