コード例 #1
0
ファイル: html5.py プロジェクト: sicinfo/web2
 def toxml(self, response, _type='text/xml'):
   output = Xml.toxml(self)
   response('200 OK', [('Content-type', _type), ('Content-length', '%s' % len(output))])
   return [output]
コード例 #2
0
ファイル: html5.py プロジェクト: sicinfo/web2
 def __init__(self, *elems, **attrs):
   Xml.__init__(self, 
                self.tag, 
                *elems, 
                **attrs)