Re: testing under Plone 5

Héctor Velarde <[email protected]>
Newsgroups gmane.comp.web.zope.plone.devel
Message-ID <[email protected]>
thanks, Timo; I want to make this very easy to reproduce so I added the 
following to my testing.py file:

     from plone import api
     from plone.app.testing import PLONE_FIXTURE
     from plone.app.testing import PloneSandboxLayer

     PLONE_VERSION = api.env.plone_version()


     class Fixture(PloneSandboxLayer):

         defaultBases = (PLONE_FIXTURE,)

         def setUpZope(self, app, configurationContext):
             if PLONE_VERSION >= '5.0':
                 import plone.app.contenttypes
                 self.loadZCML(package=plone.app.contenttypes)

             import my.package
             self.loadZCML(package=my.package)

         def setUpPloneSite(self, portal):
             if PLONE_VERSION >= '5.0':
                 self.applyProfile(portal, 'plone.app.contenttypes:default')

             self.applyProfile(portal, 'my.package:default')

but now I'm stock with a different error related (I guess) with 
plone.app.referenceablebehavior:

AttributeError: uid_catalog

full traceback here: http://pastie.org/private/u8mvdeprzclc6ibsibzba

I have this on my configure.zcml, so I don't know what else I have to do:

     <include package="plone.app.referenceablebehavior" />

any hints?

Héctor Velarde

------------------------------------------------------------------------------
Infragistics Professional
Build stunning WinForms apps today!
Reboot your WinForms applications with our WinForms controls. 
Build a bridge from your legacy apps to the future.
http://pubads.g.doubleclick.net/gampad/clk?id=153845071&iu=/4140/ostg.clktrk

_______________________________________________
Plone-developers mailing list
Plone-developers-5NWGOfrQmneRv+LV9MX5uipxlwaOVQ5f@public.gmane.org
https://lists.sourceforge.net/lists/listinfo/plone-developers
smime.p7s (application/pkcs7-signature, 3.7 KB) - not displayed
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.