2016-04-27 6 views
1
私は私の configure.zcmlファイルから <includeDependencies package="." />ディレクティブを取り除いた後にのみテストを実行している間、私はこの問題を抱えている

ComponentLookupError

Error in test test_get_load_action (sc.embedder.tests.test_content.MultimediaTestCase) 
Traceback (most recent call last): 
    File "/home/hvelarde/collective/buildout.python/parts/opt/lib/python2.7/unittest/case.py", line 329, in run 
    testMethod() 
    File "/home/hvelarde/collective/sc.embedder/src/sc/embedder/tests/test_content.py", line 135, in test_get_load_action 
    edit_form.update() 
    File "/home/hvelarde/.buildout/eggs/plone.dexterity-1.1.2-py2.7.egg/plone/dexterity/browser/edit.py", line 52, in update 
    super(DefaultEditForm, self).update() 
    File "/home/hvelarde/.buildout/eggs/plone.z3cform-0.7.8-py2.7.egg/plone/z3cform/fieldsets/extensible.py", line 59, in update 
    super(ExtensibleForm, self).update() 
    File "/home/hvelarde/.buildout/eggs/plone.z3cform-0.7.8-py2.7.egg/plone/z3cform/patch.py", line 30, in GroupForm_update 
    _original_GroupForm_update(self) 
    File "/home/hvelarde/.buildout/eggs/z3c.form-2.5.1-py2.7.egg/z3c/form/group.py", line 125, in update 
    self.updateWidgets() 
    File "/home/hvelarde/.buildout/eggs/z3c.form-2.5.1-py2.7.egg/z3c/form/form.py", line 129, in updateWidgets 
    (self, self.request, self.getContent()), interfaces.IWidgets) 
    File "/home/hvelarde/.buildout/eggs/zope.component-3.9.5-py2.7.egg/zope/component/_api.py", line 109, in getMultiAdapter 
    raise ComponentLookupError(objects, interface, name) 
ComponentLookupError: ((<Products.Five.metaclass.EditForm object at 0x7f5262a3f490>, <HTTPRequest, URL=http://nohost>, <Embedder at /plone/test-folder/multimedia>), <InterfaceClass z3c.form.interfaces.IWidgets>, u'') 

同じバージョンが前に働いて、現在configure.zcmlは現在、以下が含まれます。

<include package="Products.CMFCore" file="permissions.zcml" /> 
<include package="plone.app.dexterity" /> 
<include package="plone.app.dexterity" file="meta.zcml" /> 
<include package="five.grok" /> 

According to the documentationが、これは不良により、移行には既知の問題ですが、これはそうではないことができます。

私はPlone 4.2.6でテストしています。同じコードが動作し、テストはPlone 4.3の下でyou can see in the CI buildsとなります。

+0

はplone.z3cformのバージョンであるか、同じことをz3c.form?それをダウングレードしよう – rodfersou

答えて

1

私はconfigure.zcml宣言にパッケージがないと思われます。今では、次のようになります。

<include package="Products.CMFCore" file="permissions.zcml" /> 
<include package="plone.app.dexterity" /> 
<include package="plone.app.dexterity" file="meta.zcml" /> 
<include package="collective.dexteritytextindexer" /> 

、今取り組んでいる:https://travis-ci.org/simplesconsultoria/sc.embedder/builds/126432050

関連する問題