Skip to content

Commit

Permalink
Merge pull request #34 from plone/do3cc_bla
Browse files Browse the repository at this point in the history
Alternative solution to the dependency issue WARNING below
  • Loading branch information
jensens committed Oct 1, 2015
2 parents 9c28d8a + 5318342 commit f917b60
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 1 deletion.
5 changes: 5 additions & 0 deletions plone/app/upgrade/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -140,7 +140,12 @@ def getNonInstallableProducts(self):

# To solve the __iro__ problem because CMFPlacefulWorkflow interfaces changed on 1.6.1
try:
pkg_resources.get_distribution('Products.CMFPlacefulWorkflow')
from Products.CMFPlacefulWorkflow.interfaces import portal_placeful_workflow
except pkg_resources.DistributionNotFound:
# No package in this environment requires CMFPlacefulWorkflow,
# so no patching necessary
pass
except:
from Products.CMFPlacefulWorkflow import interfaces
alias_module('Products.CMFPlacefulWorkflow.interfaces.portal_placeful_workflow', interfaces)
1 change: 0 additions & 1 deletion setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -61,7 +61,6 @@
'Products.CMFDiffTool',
'Products.CMFEditions',
'Products.CMFFormController',
'Products.CMFPlacefulWorkflow',
'Products.CMFQuickInstallerTool',
'Products.CMFUid',
'Products.DCWorkflow',
Expand Down

0 comments on commit f917b60

Please sign in to comment.