Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Schema editor : TypeError: AutoExtensibleSubformAdapter() takes no arguments #3050

Open
zopyx opened this issue Feb 19, 2020 · 0 comments
Open

Comments

@zopyx
Copy link
Member

zopyx commented Feb 19, 2020

Plone 5.2.1

I have this supermodel which leads to the error below when I try to edit the short_description field.

<model xmlns:i18n="http://xml.zope.org/namespaces/i18n" xmlns:marshal="http://namespaces.plone.org/supermodel/marshal" xmlns:form="http://namespaces.plone.org/supermodel/form" xmlns:security="http://namespaces.plone.org/supermodel/security" xmlns:users="http://namespaces.plone.org/supermodel/users" xmlns:lingua="http://namespaces.plone.org/supermodel/lingua" xmlns:easyform="http://namespaces.plone.org/supermodel/easyform" xmlns="http://namespaces.plone.org/supermodel/schema">
  <schema>
    <field name="title" type="zope.schema.TextLine">
      <description>Title of your presentation</description>
      <required>False</required>
      <title>title</title>
    </field>
    <field name="authors" type="zope.schema.Text" easyform:TDefault="string:First Author, Affiliation 1\nSecond Author, Affiliation 2" easyform:serverSide="False" easyform:THidden="False">
      <description>Fill in the authors and there affiliation as shown in the sample text.</description>
      <required>False</required>
      <title>Authors</title>
    </field>
    <field name="submit_your_abstract_as_plain_text__max__2_500_characters_" type="zope.schema.Text">
      <description>Please enter your text - alternatively upload your abstract file (see below).</description>
      <required>False</required>
      <title>Submit your abstract as plain text (max. 2,500 characters)</title>
    </field>
    <field name="short_description" type="plone.namedfile.field.NamedBlobFile">
      <description>Please enter your text - alternatively upload your abstract file (see below).</description>
      <required>False</required>
      <title>submit your abstract as plain text (max. 2,500 characters)</title>
    </field>
    <field name="session_category" type="zope.schema.Choice" easyform:serverSide="False" easyform:THidden="False">
      <description>Please choose one session category</description>
      <title>Session category</title>
      <values>
        <element>Aerospace</element>
        <element>Automotive</element>
        <element>Biomedical</element>
        <element>Blast</element>
        <element>Composites</element>
        <element>Computing Technology</element>
        <element>Constituitive Modeling</element>
        <element>Connections</element>
        <element>Electromagnetics</element>
        <element>FSI/ALE</element>
        <element>ICFD</element>
        <element>Implicit</element>
        <element>Isogemetric Analysis (IGA)</element>
        <element>Metal Forming</element>
        <element>Modeling</element>
        <element>NVH</element>
        <element>Occupant Modeling</element>
        <element>Occupant Protection</element>
        <element>Optimization</element>
        <element>Post-Processing</element>
        <element>Simulation</element>
        <element>SPG</element>
        <element>SPH</element>
        <element>Thermal</element>
        <element>THUMS</element>
        <element>Topology &amp; Optimization</element>
        <element>Other (Please specify below)</element>
      </values>
    </field>
    <fieldset name="test" label="test"/>
  </schema>
</model>
Traceback (innermost last):
  Module ZPublisher.WSGIPublisher, line 156, in transaction_pubevents
  Module ZPublisher.WSGIPublisher, line 338, in publish_module
  Module ZPublisher.WSGIPublisher, line 256, in publish
  Module ZPublisher.mapply, line 85, in mapply
  Module ZPublisher.WSGIPublisher, line 62, 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 132, in update
  Module z3c.form.form, line 136, in updateWidgets
  Module z3c.form.field, line 277, in update
  Module z3c.form.browser.widget, line 171, in update
  Module z3c.form.object, line 216, in update
  Module Products.CMFPlone.patches.z3c_form, line 47, in _wrapped
  Module z3c.form.widget, line 132, in update
  Module z3c.form.object, line 273, in value
  Module z3c.form.object, line 203, in updateWidgets
  Module z3c.form.object, line 199, in _getForm
  Module zope.component._api, line 95, in getMultiAdapter
  Module zope.component._api, line 108, in queryMultiAdapter
  Module zope.interface.registry, line 359, in queryMultiAdapter
  Module zope.interface.adapter, line 552, in queryMultiAdapter
TypeError: AutoExtensibleSubformAdapter() takes no arguments
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant