Skip to content

Commit

Permalink
Use registry lookup for types_use_view_action_in_listings
Browse files Browse the repository at this point in the history
  • Loading branch information
esteele committed Sep 17, 2015
1 parent 4ba7481 commit f008aca
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
3 changes: 2 additions & 1 deletion CHANGES.rst
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,8 @@ Changelog
3.0.5 (unreleased)
------------------

- Nothing changed yet.
- Use registry lookup for types_use_view_action_in_listings
[esteele]


3.0.4 (2015-09-07)
Expand Down
2 changes: 1 addition & 1 deletion plone/portlet/collection/collection.pt
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
tal:define="collection_url view/collection_url;
plone_view context/@@plone;
toLocalizedTime nocall:plone_view/toLocalizedTime;
viewActions here/portal_properties/site_properties/typesUseViewActionInListings|python:();"
viewActions python:context.portal_registry.get('plone.types_view_action_in_listings', []);"
tal:attributes="class string:portlet portletCollection ${view/css_class}"><header class="portletHeader">
<span class="portletTopLeft"></span>
<a tal:attributes="href collection_url" tal:omit-tag="not:view/data/show_more">
Expand Down

0 comments on commit f008aca

Please sign in to comment.