从指定的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)

  • 初次发行 [标记]

欢迎加入QQ群-->: 979659372 Python中文网_新手群

推荐PyPI第三方库


热门话题
JavaJSonarray不会从SeekBar读取double   使用另一个类从Java中的2D数组打印用户输入   java ClassNotFoundException的原因   spring调用两个方法以返回Java中的不同页面   httpurlconnection Java禁止的代码错误,但浏览器错误(2)   java画布矩阵转换   java:在另一个java映射中使用“Map”作为值   java“未找到用于解密的证书”(Apache CXF,WSSecurity)   java如何查看JTable中选择的行   java在没有xmlwrappers的情况下重复xml元素序列集   java将垂直直方图打印到控制台   java Spring JDBCTemplate:构造不带特殊字符的JSON   java PayPal RestApi获取用户信息