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

'Could not adapt', None, <InterfaceClass plone.app.multilingual.interfaces.ILanguageIndependentFieldsManager> for Products.PloneFormGen #26

Open
idgserpro opened this issue Jun 5, 2019 · 0 comments

Comments

@idgserpro
Copy link

To simulate, use the following buildout:

[buildout]
parts = instance
extends = https://dist.plone.org/release/4-latest/versions.cfg
index = https://pypi.org/simple/
versions = versions

[instance]
recipe = plone.recipe.zope2instance
user = admin:admin
eggs =
    Plone
    Pillow
    plone.app.multilingual==2.0.4
    archetypes.multilingual==2.1.0
    Products.PloneFormGen==1.7.24

Install archetypes.multilingual and Products.PloneFormGen in controlpanel. Add a Form and then try to add a translation. An exception is raised:

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 Products.CMFPlone.FactoryTool, line 478, in __call__
  Module ZPublisher.mapply, line 77, in mapply
  Module ZPublisher.Publish, line 48, in call_object
  Module Products.CMFFormController.FSControllerPageTemplate, line 91, in __call__
  Module Products.CMFFormController.BaseControllerPageTemplate, line 29, in _call
  Module Products.CMFFormController.ControllerBase, line 232, in getNext
  Module Products.CMFFormController.Actions.TraverseTo, line 38, in __call__
  Module ZPublisher.mapply, line 77, in mapply
  Module ZPublisher.Publish, line 48, in call_object
  Module Products.CMFFormController.FSControllerPythonScript, line 105, in __call__
  Module Products.CMFFormController.Script, line 145, in __call__
  Module Products.CMFCore.FSPythonScript, line 127, in __call__
  Module Shared.DC.Scripts.Bindings, line 322, in __call__
  Module Shared.DC.Scripts.Bindings, line 359, in _bindAndExec
  Module Products.PythonScripts.PythonScript, line 344, in _exec
  Module script, line 1, in content_edit
   - <FSControllerPythonScript at /Plone/content_edit used for /Plone/en/portal_factory/FormFolder/formfolder.2019-06-05.4004462668>
   - Line 1
  Module Products.CMFCore.FSPythonScript, line 127, in __call__
  Module Shared.DC.Scripts.Bindings, line 322, in __call__
  Module Shared.DC.Scripts.Bindings, line 359, in _bindAndExec
  Module Products.PythonScripts.PythonScript, line 344, in _exec
  Module script, line 8, in content_edit_impl
   - <FSPythonScript at /Plone/content_edit_impl used for /Plone/en/portal_factory/FormFolder/formfolder.2019-06-05.4004462668>
   - Line 8
  Module Products.CMFPlone.FactoryTool, line 321, in doCreate
  Module plone.dexterity.content, line 727, in invokeFactory
  Module Products.CMFCore.PortalFolder, line 292, in invokeFactory
  Module Products.CMFCore.TypesTool, line 833, in constructContent
  Module Products.CMFCore.TypesTool, line 311, in constructInstance
  Module Products.CMFCore.TypesTool, line 552, in _constructInstance
  Module Products.PloneFormGen.content.form, line 7, in addFormFolder
  Module Products.PloneFormGen.content.form, line 866, in initializeArchetype
  Module Products.ATContentTypes.lib.constraintypes, line 277, in invokeFactory
  Module Products.CMFCore.PortalFolder, line 292, in invokeFactory
  Module Products.CMFCore.TypesTool, line 833, in constructContent
  Module Products.CMFCore.TypesTool, line 311, in constructInstance
  Module Products.CMFCore.TypesTool, line 559, in _constructInstance
  Module zope.event, line 31, in notify
  Module zope.component.event, line 24, in dispatch
  Module zope.component._api, line 136, in subscribers
  Module zope.component.registry, line 321, in subscribers
  Module zope.interface.adapter, line 585, in subscribers
  Module zope.component.event, line 32, in objectEventNotify
  Module zope.component._api, line 136, in subscribers
  Module zope.component.registry, line 321, in subscribers
  Module zope.interface.adapter, line 585, in subscribers
  Module None, line 279, in wrapper
  Module archetypes.multilingual.subscriber, line 139, in archetypes_creation_handler
TypeError: ('Could not adapt', None, <InterfaceClass plone.app.multilingual.interfaces.ILanguageIndependentFieldsManager>)

I don't know if this is an archetypes.multilingual problem or a Products.PloneFormGen one. I'm posting it here because from the traceback we're mainly coming from Products.Archetypes and then archetypes.multilingual.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant