从指定的CSS id中提取所有内容
项目描述
简介
此 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
默认情况下,使用 content id;使用 id 指定替代项
[extract] blueprint = transmogrify.extract id = wrapper
编码和解码字符集
默认情况下,都使用UTF-8。但您可以通过以下方式指定替代项
[extract] blueprint = transmogrify.extract decode = ascii encode = ascii
变更日志
0.4.0 (2012-01-28)
修复棕色袋发布 [aclark]
0.3.0 (2012-01-28)
修复棕色袋发布 [aclark]
0.2.0 (2012-01-28)
清理文档 [aclark]
0.1.0 (2011-08-31)
首次发布 [aclark]
项目详情
关闭
transmogrify.extract-0.4.0.tar.gz 的哈希值
| 算法 | 哈希摘要 | |
|---|---|---|
| SHA256 | f4634a9f8036a24a6a1662bef0d82daa2a800c5ac384fe4d5fa443bb427b670d |
|
| MD5 | 06374bd18b0f27fb2b5f62a69ff7d1ed |
|
| BLAKE2b-256 | 3d3317781d5abfcbf1cdb144f398faae716b90d3b7beed05f8bacad10d2a8d6e |