从指定的css id中提取所有内容
transmogrify.extract的Python项目详细描述
简介
注意
transmogrifier本身包含一个类似范围的编解码器蓝图:http://pypi.python.org/pypi/collective.transmogrifier/1.3#codec-section
这个Transmogrifier蓝图从指定css中提取文本 ID.
安装
通过mr.migrator:
安装示例[buildout] extends = http://build.pythonpackages.com/buildout/plone/4.1.x-dev [plone] eggs += mr.migrator transmogrify.extract transmogrify.filesystem transmogrify.ploneremote transmogrify.pathsorter transmogrify.print
用法
pipeline.cfg:
中的示例用法[transmogrifier] pipeline = source extract constructor schemaupdater print [source] blueprint = transmogrify.filesystem directory = docs/sample_content file-type = Document file-field = text wrap-data = false [extract] blueprint = transmogrify.extract [constructor] blueprint = transmogrify.ploneremote.remoteconstructor target = http://admin:admin@localhost:8080/Plone [schemaupdater] blueprint = transmogrify.ploneremote.remoteschemaupdater target = http://admin:admin@localhost:8080/Plone [print] blueprint = transmogrify.print
指定id
默认情况下,使用contentid;使用id:
[extract] blueprint = transmogrify.extract id = wrapper
编码和解码字符集
默认情况下,两者都使用utf-8。但您可以通过:
[extract] blueprint = transmogrify.extract decode = ascii encode = ascii
更改日志
0.4.0(2012-01-28)
- 固定棕色袋释放 [标记]
0.3.0(2012-01-28)
- 固定棕色袋释放 [标记]
0.2.0(2012-01-28)
- 清理文档 [标记]
0.1.0(2011-08-31)
- 初次发行 [标记]