robot API笔记4

robot.htmldata包

包编写HTML格式的输出文件。

这个包被认为是稳定的但不是公共API的一部分。

robot.htmldata.htmlfilewriter module

classrobot.htmldata.htmlfilewriter.HtmlFileWriter(outputmodel_writer)

语法: object

write(template)
classrobot.htmldata.htmlfilewriter.ModelWriter

语法: robot.htmldata.htmlfilewriter._Writer

handles(line)
write(line)
classrobot.htmldata.htmlfilewriter.LineWriter(output)

语法: robot.htmldata.htmlfilewriter._Writer

handles(line)
write(line)
classrobot.htmldata.htmlfilewriter.GeneratorWriter(html_writer)

语法: robot.htmldata.htmlfilewriter._Writer

write(line)
handles(line)
classrobot.htmldata.htmlfilewriter.JsFileWriter(html_writerbase_dir)

语法: robot.htmldata.htmlfilewriter._InliningWriter

write(line)
handles(line)
classrobot.htmldata.htmlfilewriter.CssFileWriter(html_writerbase_dir)

语法: robot.htmldata.htmlfilewriter._InliningWriter

write(line)
handles(line)

robot.htmldata.jartemplate module

classrobot.htmldata.jartemplate.HtmlTemplate(filename)

语法: object

robot.htmldata.jsonwriter module

classrobot.htmldata.jsonwriter.JsonWriter(outputseparator='')

语法: object

write_json(prefixdatapostfix=';\n'mapping=Noneseparator=True)
write(stringpostfix=';\n'separator=True)
classrobot.htmldata.jsonwriter.JsonDumper(output)

语法: object

dump(datamapping=None)
write(data)
classrobot.htmldata.jsonwriter.StringDumper(jsondumper)

语法: robot.htmldata.jsonwriter._Dumper

dump(datamapping)
handles(datamapping)
classrobot.htmldata.jsonwriter.IntegerDumper(jsondumper)

语法: robot.htmldata.jsonwriter._Dumper

dump(datamapping)
handles(datamapping)
classrobot.htmldata.jsonwriter.DictDumper(jsondumper)

语法: robot.htmldata.jsonwriter._Dumper

dump(datamapping)
handles(datamapping)
classrobot.htmldata.jsonwriter.TupleListDumper(jsondumper)

语法: robot.htmldata.jsonwriter._Dumper

dump(datamapping)
handles(datamapping)
classrobot.htmldata.jsonwriter.MappingDumper(jsondumper)

语法: robot.htmldata.jsonwriter._Dumper

handles(datamapping)
dump(datamapping)
classrobot.htmldata.jsonwriter.NoneDumper(jsondumper)

语法: robot.htmldata.jsonwriter._Dumper

handles(datamapping)
dump(datamapping)

robot.htmldata.normaltemplate module

classrobot.htmldata.normaltemplate.HtmlTemplate(filename)

语法: object

robot.htmldata.template module

posted @ 2016-05-02 16:02  七月的尾巴_葵花  阅读(259)  评论(0编辑  收藏  举报