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

Tests fails with Plone 4.3.5 Products.CMFDynamicViewFTI 4.1.0 #591

Closed
vincentfretin opened this issue Jun 2, 2015 · 3 comments
Closed

Tests fails with Plone 4.3.5 Products.CMFDynamicViewFTI 4.1.0 #591

vincentfretin opened this issue Jun 2, 2015 · 3 comments

Comments

@vincentfretin
Copy link
Member

@vincentfretin vincentfretin commented Jun 2, 2015

With Plone 4.3.5 which includes Products.CMFDynamicViewFTI 4.1.0, I get the following error when executing my project tests:

Tear down plone.testing.z2.ZServer in 1.868 seconds.
Tear down plone.app.robotframework.remote.AutoLoginRemoteLibrary:RobotRemote in 0.006 seconds.
Set up rdt.enterprisedata.testing.FIXTURE Traceback (most recent call last):
File "/home/vincentfretin/.buildout/eggs/zope.testing-3.9.7-py2.7.egg/zope/testing/testrunner/runner.py", line 366, in run_layer
  setup_layer(options, layer, setup_layers)
File "/home/vincentfretin/.buildout/eggs/zope.testing-3.9.7-py2.7.egg/zope/testing/testrunner/runner.py", line 628, in setup_layer
  setup_layer(options, base, setup_layers)
File "/home/vincentfretin/.buildout/eggs/zope.testing-3.9.7-py2.7.egg/zope/testing/testrunner/runner.py", line 633, in setup_layer
  layer.setUp()
File "/home/vincentfretin/.buildout/eggs/plone.app.testing-4.2.5-py2.7.egg/plone/app/testing/helpers.py", line 343, in setUp
  self.setUpPloneSite(portal)
File "/home/vincentfretin/workspace/astride/src/rdt.enterprisedata/rdt/enterprisedata/testing.py", line 115, in setUpPloneSite
  applyProfile(portal, 'rdt.enterprisedata:testing')
File "/home/vincentfretin/.buildout/eggs/plone.app.testing-4.2.5-py2.7.egg/plone/app/testing/helpers.py", line 113, in applyProfile
  setupTool.runAllImportStepsFromProfile(profileId)
File "/home/vincentfretin/.buildout/eggs/Products.GenericSetup-1.7.5-py2.7.egg/Products/GenericSetup/tool.py", line 365, in   runAllImportStepsFromProfile
  blacklisted_steps=blacklisted_steps)
 - __traceback_info__: profile-rdt.enterprisedata:testing
File "/home/vincentfretin/.buildout/eggs/Products.GenericSetup-1.7.5-py2.7.egg/Products/GenericSetup/tool.py", line 1119, in   _runImportStepsFromContext
  message = self._doRunImportStep(step, context)
File "/home/vincentfretin/.buildout/eggs/Products.GenericSetup-1.7.5-py2.7.egg/Products/GenericSetup/tool.py", line 1030, in _doRunImportStep
  return handler(context)
 - __traceback_info__: rdt-enterprisedata-final
File "/home/vincentfretin/workspace/astride/src/rdt.enterprisedata/rdt/enterprisedata/setuphandlers.py", line 77, in importFinalSteps
  site.invokeFactory(type_name="EnterpriseBase", id=enterprise_base_id, title="Base entreprises")
File "/home/vincentfretin/.buildout/eggs/Products.CMFCore-2.2.9-py2.7.egg/Products/CMFCore/PortalFolder.py", line 292, in invokeFactory
  return pt.constructContent(type_name, self, id, RESPONSE, *args, **kw)
File "/home/vincentfretin/.buildout/eggs/Products.CMFCore-2.2.9-py2.7.egg/Products/CMFCore/TypesTool.py", line 833, in constructContent
  ob = info.constructInstance(container, id, *args, **kw)
File "/home/vincentfretin/.buildout/eggs/Products.CMFCore-2.2.9-py2.7.egg/Products/CMFCore/TypesTool.py", line 311, in constructInstance
  return self._constructInstance(container, id, *args, **kw)
File "/home/vincentfretin/.buildout/eggs/Products.CMFCore-2.2.9-py2.7.egg/Products/CMFCore/TypesTool.py", line 560, in _constructInstance
  notifyContainerModified(container)
File "/home/vincentfretin/.buildout/eggs/zope.container-3.11.2-py2.7-linux-x86_64.egg/zope/container/contained.py", line 334, in notifyContainerModified
  notify(ContainerModifiedEvent(object, *descriptions))
File "/home/vincentfretin/.buildout/eggs/zope.event-3.5.2-py2.7.egg/zope/event/__init__.py", line 31, in notify
  subscriber(event)
File "/home/vincentfretin/.buildout/eggs/zope.component-3.9.5-py2.7.egg/zope/component/event.py", line 24, in dispatch
  zope.component.subscribers(event, None)
File "/home/vincentfretin/.buildout/eggs/zope.component-3.9.5-py2.7.egg/zope/component/_api.py", line 136, in subscribers
  return sitemanager.subscribers(objects, interface)
File "/home/vincentfretin/.buildout/eggs/zope.component-3.9.5-py2.7.egg/zope/component/registry.py", line 321, in subscribers
  return self.adapters.subscribers(objects, provided)
File "/home/vincentfretin/.buildout/eggs/zope.interface-3.6.7-py2.7-linux-x86_64.egg/zope/interface/adapter.py", line 585, in subscribers
  subscription(*objects)
File "/home/vincentfretin/.buildout/eggs/zope.component-3.9.5-py2.7.egg/zope/component/event.py", line 32, in objectEventNotify
  zope.component.subscribers((event.object, event), None)
File "/home/vincentfretin/.buildout/eggs/zope.component-3.9.5-py2.7.egg/zope/component/_api.py", line 136, in subscribers
  return sitemanager.subscribers(objects, interface)
File "/home/vincentfretin/.buildout/eggs/zope.component-3.9.5-py2.7.egg/zope/component/registry.py", line 321, in subscribers
  return self.adapters.subscribers(objects, provided)
File "/home/vincentfretin/.buildout/eggs/zope.interface-3.6.7-py2.7-linux-x86_64.egg/zope/interface/adapter.py", line 585, in subscribers
  subscription(*objects)
File "/home/vincentfretin/.buildout/eggs/Products.CMFDynamicViewFTI-4.1.0-py2.7.egg/Products/CMFDynamicViewFTI/browserdefault.py", line 247, in check_default_page
  default_page_id = container.getDefaultPage()
File "/home/vincentfretin/.buildout/eggs/Products.CMFDynamicViewFTI-4.1.0-py2.7.egg/Products/CMFDynamicViewFTI/browserdefault.py", line 92, in getDefaultPage
  return plone_utils.getDefaultPage(self)
File "/home/vincentfretin/.buildout/eggs/Products.CMFPlone-4.3.5-py2.7.egg/Products/CMFPlone/PloneTool.py", line 713, in getDefaultPage
  request = self.REQUEST
AttributeError: REQUEST

It appears to be related to @gotcha changes which add new subscribers related to default page.
It worked fine with Plone 4.3.4 (Products.CMFDynamicViewFTI 4.0.5)

@gotcha

This comment has been minimized.

Copy link
Member

@gotcha gotcha commented Jun 2, 2015

@vincentfretin

This comment has been minimized.

Copy link
Member Author

@vincentfretin vincentfretin commented Jun 2, 2015

@gotcha This fixes my issue, indeed. Thanks.

gotcha added a commit to plone/buildout.coredev that referenced this issue Jun 2, 2015
gotcha added a commit to plone/Products.CMFDynamicViewFTI that referenced this issue Jun 3, 2015
gotcha added a commit to plone/buildout.coredev that referenced this issue Jun 3, 2015
Branch: refs/heads/master
Date: 2015-06-02T12:35:18+02:00
Author: Godefroid Chapelle (gotcha) <gotcha@bubblenet.be>
Commit: plone/Products.CMFDynamicViewFTI@6ecdf22

fix plone/Products.CMFPlone#591

Files changed:
M CHANGES.txt
M Products/CMFDynamicViewFTI/browserdefault.py
Repository: Products.CMFDynamicViewFTI
Branch: refs/heads/master
Date: 2015-06-03T09:02:51+02:00
Author: Godefroid Chapelle (gotcha) <gotcha@bubblenet.be>
Commit: plone/Products.CMFDynamicViewFTI@2fda288

Merge pull request #6 from plone/fix_plone_591

fix plone/Products.CMFPlone#591

Files changed:
M CHANGES.txt
M Products/CMFDynamicViewFTI/browserdefault.py
gotcha added a commit to plone/buildout.coredev that referenced this issue Jun 3, 2015
Branch: refs/heads/master
Date: 2015-06-02T12:35:18+02:00
Author: Godefroid Chapelle (gotcha) <gotcha@bubblenet.be>
Commit: plone/Products.CMFDynamicViewFTI@6ecdf22

fix plone/Products.CMFPlone#591

Files changed:
M CHANGES.txt
M Products/CMFDynamicViewFTI/browserdefault.py
Repository: Products.CMFDynamicViewFTI
Branch: refs/heads/master
Date: 2015-06-03T09:02:51+02:00
Author: Godefroid Chapelle (gotcha) <gotcha@bubblenet.be>
Commit: plone/Products.CMFDynamicViewFTI@2fda288

Merge pull request #6 from plone/fix_plone_591

fix plone/Products.CMFPlone#591

Files changed:
M CHANGES.txt
M Products/CMFDynamicViewFTI/browserdefault.py
@gotcha

This comment has been minimized.

Copy link
Member

@gotcha gotcha commented Jun 3, 2015

@vincentfretin released as Products.CMFDynamicViewFTI==4.1.2

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
2 participants
You can’t perform that action at this time.