# h t m l F r a m e . p y## Chris Meyers. 09/25/2013## Holder for attributes to be applied to a template and# a simple function to apply attributes to template and# send it to the <div> for displayfrom pg_logger import setHTMLdft_template = """<html><body><h3>%(banner)s</h3><div>%(item1)s</div><div>%(item2)s</div><div>%(item3)s</div></html></body>"""class HtmlFrame :def __init__ (self, template=dft_template, banner="") :self.outputOn = Trueself.template = templateself.banner = bannerself.item1 = self.item2 = self.item3 = ""def makeEofPage(self) :passdef makeFrame (self,template=None) :if not template : template = self.templatecontent = template % self.__dict__setHTML(content)
此处可能存在不合适展示的内容,页面不予展示。您可通过相关编辑功能自查并修改。
如您确认内容无涉及 不当用语 / 纯广告导流 / 暴力 / 低俗色情 / 侵权 / 盗版 / 虚假 / 无价值内容或违法国家有关法律法规的内容,可点击提交进行申诉,我们将尽快为您处理。