[Zope-CMF] SVN: Products.CMFDefault/trunk/setup.py - dependency cleanup
Jens Vagelpohl
jens at dataflake.org
Mon Feb 16 12:33:03 EST 2009
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
On Feb 16, 2009, at 17:44 , Tres Seaver wrote:
> Can somebody explain the dependency on DCWorkflow's ZCML getting
> loaded?
> This seems like it should be ripped out: no tests should need to get
> actaul DCWrolfow instances configured. Or are we trying to run
> functional tests against a site configured from a profile which uses
> DCWorkflow?
Well, the use of the DCWorkflow profile is indirect.
CMFDefault.testing defines a functional test layer that instantiates a
portal using the CMFDefault default profile. Without loading the
DCWorkflow profile, workflow creation fails with the traceback below.
jens
Set up Products.CMFDefault.testing.FunctionalLayer Traceback (most
recent call last):
File "/usr/local/py24/CMF.buildout-trunk/eggs/zope.testing-3.7.1-
py2.4.egg/zope/testing/testrunner/runner.py", line 360, in run_layer
setup_layer(options, layer, setup_layers)
File "/usr/local/py24/CMF.buildout-trunk/eggs/zope.testing-3.7.1-
py2.4.egg/zope/testing/testrunner/runner.py", line 536, in setup_layer
layer.setUp()
File "/usr/local/py24/CMF.buildout-trunk/src/Products.CMFDefault/
Products/CMFDefault/testing.py", line 41, in setUp
snapshot=False)
File "/usr/local/py24/CMF.buildout-trunk/src/Products.CMFDefault/
Products/CMFDefault/factory.py", line 63, in addConfiguredSite
setup_tool.runAllImportStepsFromProfile('profile-%s' % profile_id)
File "/usr/local/py24/CMF.buildout-trunk/src/Products.GenericSetup/
Products/GenericSetup/tool.py", line 327, in
runAllImportStepsFromProfile
ignore_dependencies=ignore_dependencies)
File "/usr/local/py24/CMF.buildout-trunk/src/Products.GenericSetup/
Products/GenericSetup/tool.py", line 1082, in _runImportStepsFromContext
message = self._doRunImportStep(step, context)
File "/usr/local/py24/CMF.buildout-trunk/src/Products.GenericSetup/
Products/GenericSetup/tool.py", line 996, in _doRunImportStep
return handler(context)
File "/usr/local/py24/CMF.buildout-trunk/src/Products.CMFCore/
Products/CMFCore/exportimport/workflow.py", line 126, in
importWorkflowTool
importObjects(tool, '', context)
File "/usr/local/py24/CMF.buildout-trunk/src/Products.GenericSetup/
Products/GenericSetup/utils.py", line 821, in importObjects
importer.body = body
File "/usr/local/py24/CMF.buildout-trunk/src/Products.GenericSetup/
Products/GenericSetup/utils.py", line 505, in _importBody
self._importNode(dom.documentElement)
File "/usr/local/py24/CMF.buildout-trunk/src/Products.CMFCore/
Products/CMFCore/exportimport/workflow.py", line 63, in _importNode
self._initObjects(node)
File "/usr/local/py24/CMF.buildout-trunk/src/Products.GenericSetup/
Products/GenericSetup/utils.py", line 566, in _initObjects
raise ValueError("unknown meta_type '%s'" % meta_type)
ValueError: unknown meta_type 'Workflow'
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.8 (Darwin)
iEYEARECAAYFAkmZo08ACgkQRAx5nvEhZLJw/gCgtRL31njX0iG5oOAxs9Q51qre
OcAAn0Ra7YOYiCwpSRRHAi7z5e4wrUlz
=DfYB
-----END PGP SIGNATURE-----
More information about the Zope-CMF
mailing list