Admin/website/build/pypager.py
changeset 16240 95cc0e8f8a17
parent 16233 e634d33deb86
child 16241 bf058cdf6841
equal deleted inserted replaced
16239:5be516f79075 16240:95cc0e8f8a17
   120         handler.endElement(u"td")
   120         handler.endElement(u"td")
   121         handler.startElement(u"td", {})
   121         handler.startElement(u"td", {})
   122         handler.characters(u"%i%sKB" % (size / 1024, unichr(160)))
   122         handler.characters(u"%i%sKB" % (size / 1024, unichr(160)))
   123         handler.endElement(u"td")
   123         handler.endElement(u"td")
   124 
   124 
   125     def cvs(self, handler, **args):
       
   126 
       
   127         pass
       
   128 
       
   129 # a notion of paths
   125 # a notion of paths
   130 class PathCalculator:
   126 class PathCalculator:
   131 
   127 
   132     def __init__(self, srcLoc, srcRoot, dstRoot):
   128     def __init__(self, srcLoc, srcRoot, dstRoot):
   133 
   129 
   352             systemId = path.join(self._dtd, name)
   348             systemId = path.join(self._dtd, name)
   353         return EntityResolver.resolveEntity(self, publicId, systemId)
   349         return EntityResolver.resolveEntity(self, publicId, systemId)
   354 
   350 
   355     def processingInstruction(self, target, data):
   351     def processingInstruction(self, target, data):
   356 
   352 
       
   353         print '*', target
       
   354         print '*', data
   357         self.closeLastStart()
   355         self.closeLastStart()
   358         self.flushCharacterBuffer()
   356         self.flushCharacterBuffer()
   359         func = getattr(self._func, target)
   357         func = getattr(self._func, target)
   360         args = {}
   358         args = {}
   361         for keyval in shlex.split(data.encode("utf-8")):
   359         for keyval in shlex.split(data.encode("utf-8")):