Skip to content

Commit

Permalink
Merge pull request #104 from plone/gforcada-patch-2
Browse files Browse the repository at this point in the history
Replace showEditableBorder with showToolbar
  • Loading branch information
gforcada authored Nov 13, 2016
2 parents 26ad17f + 8da53a1 commit d358eb5
Show file tree
Hide file tree
Showing 5 changed files with 13 additions and 7 deletions.
4 changes: 4 additions & 0 deletions CHANGES.rst
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,10 @@ Bug fixes:
- Remove commented out viewlet (meant for Plone 3) and its related template.
[gforcada]

- Adapt code to some deprecated methods getting finally removed.
[gforcada]


2.6.1 (2016-06-07)
------------------

Expand Down
6 changes: 4 additions & 2 deletions plone/app/layout/viewlets/common.py
Original file line number Diff line number Diff line change
Expand Up @@ -420,12 +420,14 @@ class ManagePortletsFallbackViewlet(ViewletBase):
def update(self):
ploneview = getMultiAdapter((
self.context, self.request), name=u'plone')
plonelayout = getMultiAdapter((
self.context, self.request), name=u'plone_layout')
context_state = getMultiAdapter((self.context, self.request),
name=u'plone_context_state')

self.portlet_assignable = context_state.portlet_assignable()
self.sl = ploneview.have_portlets('plone.leftcolumn', self.context)
self.sr = ploneview.have_portlets('plone.rightcolumn', self.context)
self.sl = plonelayout.have_portlets('plone.leftcolumn', self.context)
self.sr = plonelayout.have_portlets('plone.rightcolumn', self.context)
self.object_url = context_state.object_url()

def available(self):
Expand Down
4 changes: 2 additions & 2 deletions plone/app/layout/viewlets/contentactions_blank.pt
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
<div class="contentActions"
tal:define="ploneview context/@@plone"
tal:condition="ploneview/showEditableBorder">
tal:condition="ploneview/showToolbar">

</div>
</div>
2 changes: 1 addition & 1 deletion plone/app/layout/viewlets/contentviews.pt
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
<tal:contentviews tal:define="ploneview context/@@plone;"
tal:condition="ploneview/showEditableBorder"
tal:condition="ploneview/showToolbar"
i18n:domain="plone">

<tal:block define="actions view/tabSet1;">
Expand Down
4 changes: 2 additions & 2 deletions plone/app/layout/viewlets/menu.pt
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
<tal:contentviews tal:define="ploneview context/@@plone;"
tal:condition="ploneview/showEditableBorder"
tal:condition="ploneview/showToolbar"
i18n:domain="plone">
<tal:actions tal:repeat="action options/actions">
<li tal:attributes="id string:contentview-${action/id};
Expand Down Expand Up @@ -37,4 +37,4 @@
</tal:var>
</li>
</tal:actions>
</tal:contentviews>
</tal:contentviews>

0 comments on commit d358eb5

Please sign in to comment.