Skip to content

Commit

Permalink
Products.TinyMCE won't be in Plone 5 by default
Browse files Browse the repository at this point in the history
  • Loading branch information
jaroel committed Feb 11, 2014
1 parent cd04764 commit eac2d8a
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions plone/app/testing/layers.py
@@ -1,5 +1,6 @@
# Layers setting up fixtures with a Plone site. Also importable from
# plone.app.testing directly
import pkg_resources

from plone.testing import Layer
from plone.testing import zodb, zca, z2
Expand Down Expand Up @@ -61,9 +62,14 @@ class PloneFixture(Layer):
('Products.SiteAccess' , {'loadZCML': False}, ),

('Products.PasswordResetTool' , {'loadZCML': True}, ),
)

if pkg_resources.get_distribution("Products.CMFPlone").version < 5:
products += (
('Products.TinyMCE' , {'loadZCML': True}, ),
)

products += (
('Products.CMFEditions' , {'loadZCML': True}, ),
('Products.CMFDiffTool' , {'loadZCML': True}, ),

Expand Down

0 comments on commit eac2d8a

Please sign in to comment.