collective.easyformplugin.createdx

Create dexterity objects from easyform submissions


Keywords
Python, Plone, easyform
License
CNRI-Python-GPL-Compatible
Install
pip install collective.easyformplugin.createdx==1.0a3

Documentation

collective.easyformplugin.createdx

Creates Plone content objects from EasyForm submissions.

Features

Easyform action to create Plone/Dexterity content items.

Converters to meet the target fields requirements for example a data_handler to add timezone info to be able to create events.

Documentation

  • Install the addon within your Plone site
  • From the actions menu choose edit actions and add a new action Create dexterity content
  • Choose a location where the items should be create
  • Choose the desired content type
  • Map your form field ids to the item field ids and add converters as needed

Available converters

plaintext_to_intellitext

converts plain text to html

datetime_with_timezone

adds portal default timezone to datetime

file_converter

takes a fileupload and converts it to a named blob file,

Mapping

Field mapping format: formFieldId itemFieldId:converter. The converter is optional, value is taken as is. Latter implies value types are matching in EasyForm (form field) and target schema (item feld)! Make sure you have at least eiter the title or id mapping defined, because it will also be used to create the id of the item!

Example:

topic title
comments text:plaintext_to_intellitext
event_start start:datetime_with_timezone
video_upload file:fileupload_converter

Note

There have been ZODB transaction issues, turn off versioning for easyform as a workaround.

Contribute

Support

If you are having issues, please let us know on the issue tracker.

License

The project is licensed under the GPLv2.