Skip to main content

Transmogrifier blueprint to print pipeline item keys

Project description

Introduction

This Transmogrifier blueprint is based on collective.transmogrifier.sections.tests.PrettyPrinter, which anyone can use in their project by creating a utility like so:

<utility
    component="collective.transmogrifier.sections.tests.PrettyPrinter"
    name="print" />

Then adding a section to your pipeline like so:

[transmogrifier]
pipeline =
    …
    print

[print]
blueprint = print

transmogrify.print has has two advantages over the above approach. One, it adds the utility for you. And two, it allows you to specify a keys parameter to print individual keys. If no key is provided, it prints the entire item.

Installation

Make sure to require transmogrify.print in your project, e.g.:

from setuptools import setup

setup(
    name='migrate',
    py_modules=['migrate'],
    install_requires=[
        'plone.app.transmogrifier',
        'transmogrify.filesystem',
    ]
)

Then you may use it in your pipelines, e.g.:

[transmogrifier]
pipeline =
    data
    constructor
#    schema
    print

[constructor]
blueprint = collective.transmogrifier.sections.constructor

[data]
blueprint = transmogrify.filesystem
directory = silly_content
file-type = Document

[print]
blueprint = print

[schema]
blueprint = plone.app.transmogrifier.atschemaupdater

See: https://github.com/aclark4life/silly_content_import for a working example.

Changelog

0.2.0 (2011-07-31)

  • Fix package data [aclark]

0.1.0 (2011-07-31)

  • Initial release [aclark]

Project details


Download files

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

Source Distribution

transmogrify.print-0.2.0.zip (6.9 kB view hashes)

Uploaded Source

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page