Skip to content

Commit

Permalink
use aq_inner to remove potentially double wrapped stuff
Browse files Browse the repository at this point in the history
  • Loading branch information
tomgross committed Jun 8, 2015
1 parent aa8df9d commit 1e06629
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions plone/app/iterate/subscribers/workflow.py
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@
"""

from Acquisition import aq_base
from Acquisition import aq_base, aq_inner
from Products.CMFCore.utils import getToolByName
from Products.CMFPlacefulWorkflow.WorkflowPolicyConfig import WorkflowPolicyConfig
from Products.CMFPlacefulWorkflow.PlacefulWorkflowTool import WorkflowPolicyConfig_id
Expand All @@ -38,7 +38,7 @@

def handleCheckout( event ):
# defer to setting
properties = getToolByName(event.object, 'portal_properties')
properties = getToolByName(aq_inner(event.object), 'portal_properties')
enabled = properties.site_properties.getProperty('enable_checkout_workflow')
if not enabled:
return
Expand Down

0 comments on commit 1e06629

Please sign in to comment.