bug in collective.dancing, override zcml of plone.z3cform.

3 messages Options
Embed this post
Permalink
Jean-Michel FRANCOIS () bug in collective.dancing, override zcml of plone.z3cform.
Reply Threaded More More options
Print post
Permalink
Hi,

I m using collective.dancing on a project. It seems the released version
is bugged by this zcml directive:

  !-- Leave the includeOverrides to plone.z3cform itself and it'll fail: --
  includeOverrides package="plone.z3cform" file="overrides.zcml"

If I removed it, zope can start. Else zope failed with this trace:

ConfigurationConflictError: Conflicting configuration
actions                                                                                                                                                                                

  For: ('adapter', (<InterfaceClass zope.schema.interfaces.IBytes>,
<InterfaceClass z3c.form.interfaces.IFileWidget>), <InterfaceClass
z3c.form.interfaces.IDataConverter>,
'')                                                            
    File
"/home/toutpt/.buildout/eggs/z3c.form-1.9.0-py2.4.egg/z3c/form/file.zcml",
line
14.2-16.8                                                                                                                                          

       
<adapter                                                                                                                                                                                                                            

           
factory=".converter.FileUploadDataConverter"                                                                                                                                                                                    

           
/>                                                                                                                                                                                                                              

    File
"/home/toutpt/.buildout/eggs/plone.z3cform-0.5.5-py2.4.egg/plone/z3cform/overrides.zcml",
line
3.2-5.8                                                                                                                              

       
<adapter                                                                                                                                                                                                                            

           
factory=".converter.FileUploadDataConverter"                                                                                                                                                                                    

            />    

For me plone.z3cform do it's job. And if not you can add the overide in
buildout's instance part but not directly inside the zcml of an egg.
What do you think about this ?

--
Cordialement,
Jean-Michel FRANCOIS
Makina-Corpus



_______________________________________________
Product-Developers mailing list
[hidden email]
http://lists.plone.org/mailman/listinfo/product-developers
pellekrogholt () Re: bug in collective.dancing, override zcml of plone.z3cform.
Reply Threaded More More options
Print post
Permalink

Jean-Michel FRANCOIS wrote:
...
  !-- Leave the includeOverrides to plone.z3cform itself and it'll fail: --
  includeOverrides package="plone.z3cform" file="overrides.zcml"

If I removed it, zope can start. Else zope failed with this trace:
...
i submitted the bug to https://bugs.launchpad.net/singing-dancing/+bug/444344 and committed your suggested fix to trunk http://dev.plone.org/collective/changeset/99045

thx for sharing

//

pelle
pellekrogholt () Re: bug in collective.dancing, override zcml of plone.z3cform.
Reply Threaded More More options
Print post
Permalink
In reply to this post by Jean-Michel FRANCOIS

Jean-Michel FRANCOIS wrote:
...
  !-- Leave the includeOverrides to plone.z3cform itself and it'll fail: --
  includeOverrides package="plone.z3cform" file="overrides.zcml"

If I removed it, zope can start. Else zope failed with this trace:
...
i recently discovered that it can be problematic to remove the includeOverrides since it will break the cvs file upload form in S&D and probably other stuff as well.

a better solution for now is to explicitly do zcml = collective.dancing in the buildout.cfg even if you have included it within your own custom packages read more here: https://bugs.launchpad.net/singing-dancing/+bug/444344


//

pelle