[prev in list] [next in list] [prev in thread] [next in thread]
List: zope
Subject: Re: [Zope] Product loading during ZopeTestCase startup
From: Encolpe Degoute <encolpe.degoute () quadra-informatique ! fr>
Date: 2010-01-19 7:40:56
Message-ID: hj3nm6$rnf$1 () ger ! gmane ! org
[Download RAW message or body]
Ross Patterson a écrit :
> Encolpe Degoute
> <encolpe.degoute@quadra-informatique.fr>
> writes:
>
>> Hello,
>> since few days i'am facing a strange problem with egg loading in tests.
>> One egg called project.site_policy is never loaded in the Products
>> namespace: the ZopeLite.hasPackage('project.site_policy') always returns
>> False.
>> Where is the code that loads eggs and products outside
>> SOFTWARE_HOME/lib/python/Products ?
>>
>> regards
>
> If I'm understanding correctly, one need to use the five:registerPackage
> ZCML directive and then use ZTC.installPackage. Many collective.*
> packages can be used as reference, including collective.formcriteria.
> There are probably simper examples, but that's the first that comes to
> mind.
I finally found it.
My colleague create an egg without five:registerPackage and it was
working for times in production... but not if you run unittests.
Thanks,
Encolpe DEGOUTE
_______________________________________________
Zope maillist - Zope@zope.org
https://mail.zope.org/mailman/listinfo/zope
** No cross posts or HTML encoding! **
(Related lists -
https://mail.zope.org/mailman/listinfo/zope-announce
https://mail.zope.org/mailman/listinfo/zope-dev )
[prev in list] [next in list] [prev in thread] [next in thread]
Configure |
About |
News |
Add a list |
Sponsored by KoreLogic