I want to create content object from an easyform submission.
Wasn't there something like uwosh.pfg.d2c for easyforms?
AFAIK no..maybe it should be easy to do in addition with Dexterity ttw content-type creation.
I have build something for the university Gent where we generate add forms from arbitrary types based on schema introspection in order to provide simple add forms for average users. The list fields to be used for a particular portal type is based on a simple configuration.
So I started an easyform plugin package for that case https://github.com/collective/collective.easyformplugin.createdx
But there isn't much happening yet because of this error when I try to add the new action to the form ...
Traceback (innermost last):
Module ZPublisher.Publish, line 138, in publish
Module ZPublisher.mapply, line 77, in mapply
Module ZPublisher.Publish, line 48, in call_object
Module plone.z3cform.layout, line 63, in __call__
Module plone.z3cform.layout, line 47, in update
Module plone.z3cform.fieldsets.extensible, line 65, in update
Module plone.z3cform.patch, line 30, in GroupForm_update
Module z3c.form.group, line 145, in update
Module plone.app.z3cform.csrf, line 22, in execute
Module z3c.form.action, line 98, in execute
Module z3c.form.button, line 315, in __call__
Module z3c.form.button, line 170, in __call__
Module z3c.form.form, line 257, in handleAdd
Module z3c.form.form, line 265, in createAndAdd
Module plone.schemaeditor.browser.schema.add_field, line 88, in add
Module zope.event, line 31, in notify
Module zope.component.event, line 27, in dispatch
Module zope.component._api, line 139, in subscribers
Module zope.interface.registry, line 442, in subscribers
Module zope.interface.adapter, line 607, in subscribers
Module zope.component.event, line 36, in objectEventNotify
Module zope.component._api, line 139, in subscribers
Module zope.interface.registry, line 442, in subscribers
Module zope.interface.adapter, line 607, in subscribers
Module collective.easyform.subscribers, line 11, in updateActions
Module collective.easyform.api, line 168, in set_actions
Module plone.supermodel, line 41, in serializeSchema
Module plone.supermodel, line 45, in serializeModel
Module plone.supermodel.serializer, line 105, in serialize
Module plone.supermodel.serializer, line 68, in writeField
ValueError: Field type collective.easyformplugin.createdx.actions.CreateDX specified for field dxaction is not supported
[29] > /Users/peter/workspace/plone/eggs/plone.supermodel-1.4.0-py2.7.egg/plone/supermodel/serializer.py(68)writeField()
it then tries to get a handler for the fieldType which is my custom action
68 -> if handler is None:
69 handler = handlers[fieldType] = queryUtility(IFieldExportImportHandler, name=fieldType)
but can't find any
Does anyone have a clue why my handler registration https://github.com/collective/collective.easyformplugin.createdx/blob/master/src/collective/easyformplugin/createdx/actions.py#L45 isn't working?
Naming of the utility was wrong... so the lookup couldn't return anything.