Welcome, guest | Sign In | My Account | Store | Cart

Notice! PyPM is being replaced with the ActiveState Platform, which enhances PyPM’s build and deploy capabilities. Create your free Platform account to download ActivePython or customize Python with the packages you require and get automatic updates.

Download
ActivePython
INSTALL>
pypm install transmogrify.print

How to install transmogrify.print

  1. Download and install ActivePython
  2. Open Command Prompt
  3. Type pypm install transmogrify.print
 Python 2.7Python 3.2Python 3.3
Windows (32-bit)
0.5.0 Available View build log
0.4.0 Available View build log
Windows (64-bit)
0.5.0 Available View build log
0.4.0 Available View build log
Mac OS X (10.5+)
0.5.0 Available View build log
0.4.0 Available View build log
Linux (32-bit)
0.5.0 Available View build log
0.4.0 Available View build log
Linux (64-bit)
0.5.0 Available View build log
0.4.0 Available View build log
 
Author
Lastest release
version 0.5.0 on Sep 1st, 2011

Introduction

Note

As of version 1.3 Transmogrifier provides a similar feature, via a blueprint called: collective.transmogrifier.sections.logger.

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:

  • It adds the utility for you
  • 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',
        'transmogrify.print',
    ]
)

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 = transmogrify.print
keys = _path

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

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

Changelog

0.5.0 (2011-08-30)
  • Fix entry point, now targetting transmogrify [aclark]
0.4.0 (2011-07-31)
  • Note the existence of collective.transmogrifier.sections.logger which does something similar. [aclark]
0.3.0 (2011-07-31)
  • Fix blueprint name, should be something unique like transmogrify.print (instead of print). [aclark]
  • Show keys being used in README [aclark]
0.2.0 (2011-07-31)
  • Fix package data, setup.py missing include_package_data. [aclark]
0.1.0 (2011-07-31)
  • Initial release [aclark]

Subscribe to package updates

Last updated Sep 1st, 2011

Download Stats

Last month:2

What does the lock icon mean?

Builds marked with a lock icon are only available via PyPM to users with a current ActivePython Business Edition subscription.

Need custom builds or support?

ActivePython Enterprise Edition guarantees priority access to technical support, indemnification, expert consulting and quality-assured language builds.

Plan on re-distributing ActivePython?

Get re-distribution rights and eliminate legal risks with ActivePython OEM Edition.