A transmogrifier blueprint for updating dexterity objects
Project description
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 object to update. Paths to objects are always interpreted as 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
need a dict with data and filename or get the filename in a seperated value from the pipeline
- Date
need a datetime.date object or a string in the following format “%d.%m.%Y”
TODO
Generally support for all fields
Tests
Changelog
1.0a4 - 2011-06-07
Ensure RichTextValue gets a decoded unicode string, add tests [lentinj]
Refactor to support more field types. [elro]
1.0a3
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]
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distributions
Hashes for transmogrify.dexterity-1.0a4.zip
Algorithm | Hash digest | |
---|---|---|
SHA256 | f801df9a8c3e04282e9d396bbe6f7d220992a46d272453a9866aa1b10451923e |
|
MD5 | 0a9738c30192d4ebecb5969bfc162830 |
|
BLAKE2b-256 | a3ecf7f2eec70fae24fb15932d426d4a8026182ee98e3496815132e90037572e |
Hashes for transmogrify.dexterity-1.0a4.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | a1250469a110eca68874e4cd8d186aa40f5b206616a82e49d7c1ebbff07ec36f |
|
MD5 | c67fbb71a42c18b78b6c806cdb3e7858 |
|
BLAKE2b-256 | ec1accc048b16fbb54e17660e1ac3a5471d3046fc5415ba1c0556ee4301b1aa1 |