Thank you very much for this solution !!
I spent hours trying to understand why my product was not setting up
properly in my tests.
Now I have moved installProduct call outside onsetup, it works fine.

As it used to work when called from onsetup in Plone 3, it would
probably a good thing to mention in the Plone 3 to Plone 4 upgrade
guide.

Eric

On Sat, Nov 20, 2010 at 9:35 PM, David Glick <[email protected]> wrote:
> On 11/19/10 10:57 PM, Ross Patterson wrote:
>> Andreas Jung <[email protected]> writes:
>>
>>> Ross Patterson wrote:
>>>
>>>> Your ZCML doesn't incldue five:registerPackage
>>> Does not help after adding registerPackage:
>>>
>>> http://svn.plone.org/svn/collective/Products.EasyNewsletter/trunk/Products/EasyNewsletter/configure.zcml
>>>
>>>> nor does your test setup
>>>> call installProduct.
>>> installProduct() is of course called in the setup of the layer
>>> (see base.py).
>> My bad, missed the installProduct.
> installProduct is a deferred call just like setupPloneSite and your
> setup_registration.  So when you call it from within setup_registration,
> it adds the deferred function too late.  I think it'll work if you put
> the installProduct line outside of setup_registration.
>
> As for the five:registerPackage, you shouldn't need that since this
> package is in the Products namespace.
> ----------
> David Glick
>  Web Developer
>  [email protected]
>  206.286.1235x32
>
> Groundwire: You Are Connected
>  http://groundwire.org
>
> Online tools and strategies for the environmental movement.  Sign up for 
> Groundwire News!
>  http://groundwire.org/email-capture
>
> Check out our 2010 Website Benchmarks Report. How do you stack up?
>  http://groundwire.org/resources/articles/2010-website-benchmarks-report
>
> _______________________________________________
> Product-Developers mailing list
> [email protected]
> http://lists.plone.org/mailman/listinfo/product-developers
>
_______________________________________________
Product-Developers mailing list
[email protected]
http://lists.plone.org/mailman/listinfo/product-developers

Reply via email to