Skip to main content

Introduction

This Transmogrifier blueprint extracts text from within the specified CSS id.

Installation

Sample installation via 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

Usage

Sample usage in 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

Specify id

By default, the content id is used; specify an alternative with id:

[extract]
blueprint = transmogrify.extract
id = wrapper

Encoding and decoding charsets

By default, UTF-8 is used for both. But you can specify an alternative via:

[extract]
blueprint = transmogrify.extract
decode = ascii
encode = ascii

Changelog

0.4.0 (2012-01-28)

  • Fix brown bag release [aclark]

0.3.0 (2012-01-28)

  • Fix brown bag release [aclark]

0.2.0 (2012-01-28)

  • Clean up docs [aclark]

0.1.0 (2011-08-31)

  • Initial release [aclark]

Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

transmogrify.extract-0.4.0.tar.gz (18.6 kB view details)

Uploaded Source

File details

Details for the file transmogrify.extract-0.4.0.tar.gz.

File metadata

File hashes

Hashes for transmogrify.extract-0.4.0.tar.gz
Algorithm Hash digest
SHA256 f4634a9f8036a24a6a1662bef0d82daa2a800c5ac384fe4d5fa443bb427b670d
MD5 06374bd18b0f27fb2b5f62a69ff7d1ed
BLAKE2b-256 3d3317781d5abfcbf1cdb144f398faae716b90d3b7beed05f8bacad10d2a8d6e

See more details on using hashes here.

Release history Release notifications | RSS feed

This release

0.4.0 This release

1 file

0.3.0

1 file

0.2.0

1 file

0.1.0

1 file

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page