Skip to content

Commit

Permalink
Merge pull request #59 from plone/optional_pafolder
Browse files Browse the repository at this point in the history
Make plone.app.folder optional even in py2
  • Loading branch information
gforcada committed Feb 16, 2019
2 parents c7797bb + 70c58f7 commit d63d521
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 1 deletion.
1 change: 1 addition & 0 deletions news/59.bugfix
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
Make plone.app.folder a optional product for PloneFixture in py2
10 changes: 9 additions & 1 deletion src/plone/app/testing/layers.py
Original file line number Diff line number Diff line change
Expand Up @@ -69,9 +69,17 @@ class PloneFixture(Layer):
if six.PY2:
products += (
('Products.ExternalEditor', {'loadZCML': True}, ),
('plone.app.folder', {'loadZCML': True}, ),
)

try:
# Since gopipindex moved to plone.folder only with Archetypes
import plone.app.folder
products += (
('plone.app.folder', {'loadZCML': True}, ),
)
except ImportError:
pass

# try:
# import Products.PasswordResetTool
# products = products + (
Expand Down

0 comments on commit d63d521

Please sign in to comment.