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.dexterity

How to install transmogrify.dexterity

  1. Download and install ActivePython
  2. Open Command Prompt
  3. Type pypm install transmogrify.dexterity
 Python 2.7Python 3.2Python 3.3
Windows (32-bit)
1.1
1.2Never BuiltWhy not?
1.1 Available View build log
1.0 Available View build log
1.0a5 Available View build log
1.0a4 Available View build log
1.0a3 Available View build log
Windows (64-bit)
1.1
1.2Never BuiltWhy not?
1.1 Available View build log
1.0 Available View build log
1.0a5 Available View build log
1.0a4 Available View build log
1.0a3 Available View build log
Mac OS X (10.5+)
1.1
1.2Never BuiltWhy not?
1.1 Available View build log
1.0 Available View build log
1.0a5 Available View build log
1.0a4 Available View build log
1.0a3 Available View build log
Linux (32-bit)
1.1
1.2Never BuiltWhy not?
1.1 Available View build log
1.0 Available View build log
1.0a5 Available View build log
1.0a4 Available View build log
1.0a3 Available View build log
Linux (64-bit)
1.2 Available View build log
1.1 Available View build log
1.0 Available View build log
1.0a5 Available View build log
1.0a4 Available View build log
1.0a3 Available View build log
 
License
GPL2
Lastest release
version 1.2 on Jan 9th, 2014

Introduction

The transmogrify.dexterity package provides a transmogrifier pipeline section for updating field values of dexterity content objects. The blueprint name is transmogrify.dexterity.schemaupdater.

The schemaupdater section needs at least the path to the object to update. Paths to objects are always interpreted as being relative to the context. Any writable field who's id matches a key in the current item will be updated with the corresponding value.

Fields that do not get a value from the pipeline are initialized with their default value or get a missing_value marker. This functionality will be moved into a separate constructor pipeline...

The schmemaupdater section can also handle fields defined in behaviors.

Actually tested and supported fields
  • TextLine or Text

  • Bool

  • List

  • NamedFileField

    needs a dict with data and filename or get the filename in a seperated value from the pipeline

  • Date

    needs a datetime.date or datetime.datetime object, or a string in the following format "%Y-%m-%d"

Default pipelines

This package also registers a number of pipelines for you to use. To add them to a GenericSetup profile, create a transmogrifier.txt with the name of the pipeline you wish to use.

transmogrify.dexterity.csvimport

This pipeline will convert a CSV file into dexterity content. By default, the CSV file will be found in /tmp/entries.csv.

NB: Unfortunately it cannot read files out of GS profiles, this is a limitation in the csvsource, one I may well fix.

Any column beyond the ones listed below will be presumed to be a Dexterity field, and will be updated. Special columns are:

  • _type

    portal_type of content (optional, default is Document)

  • _path

    Full path to content item, including content item.

  • _folder

    Folder containing item, id will be derived from title

  • _transitions

    Workflow transition (optional, default is "publish")

TODO
  • General support for all fields
  • Tests

Changelog

1.2 (2013-08-29)
  • Only update with a default value if there isn't a value already set on the field. (NB: before a default value would be set, regardless of the current field value). [lentinj]
1.1 (2013-07-23)
  • Don't try to write readonly fields [djowett]
  • Added in a generic CSV -> content pipeline [lentinj]
1.0 (2011-11-17)
  • Updated changelog to be zest releaser compatible [lgraf]
1.0a5 (2011-07-18)
  • Added check-constraints option to schemaupdater section. If set to False, field values that are set in the schemaupdater section won't be validated against the field's constraints. [lgraf]
  • Made CollectionDeserializer cast None and empty string to an empty list [lgraf]
  • Added a basic DateDeserializer [lgraf]
  • Using new-style classes for [de]serializers [lgraf]
1.0a4 (2011-06-07)
  • Ensure RichTextValue gets a decoded unicode string, add tests [lentinj]
  • Refactor to support more field types. [elro]
1.0a3 (2010-03-12)
  • Fixed bug in typechecking of values for Boolean fields [lgraf]
  • fixed dateconverting [phgross]
  • fixed value check: so that it works correctly with an empty string [phgross]
  • fixed handling for list and bool fields [phgross]

Subscribe to package updates

Last updated Jan 9th, 2014

Download Stats

Last month:3

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.