Skip to content

Commit

Permalink
Merge pull request #187 from plone/thet-unwrap-searchbase
Browse files Browse the repository at this point in the history
unwrap search_base in portlets
  • Loading branch information
thet committed May 31, 2015
2 parents 43099c8 + 64aab32 commit 6411887
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 2 deletions.
4 changes: 4 additions & 0 deletions CHANGES.rst
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,10 @@ Changelog
2.0a12 (unreleased)
-------------------

- Unwrap search_base for portlets, as it might be wrapped by the portlet
renderer class. Fixes an error with getting the events to display.
[thet]

- Import BBB superclasses from plone.app.portlets.portlets.base so it works
with plone.app.portlets 3.0 and up
[frapell]
Expand Down
3 changes: 2 additions & 1 deletion plone/app/event/portlets/portlet_calendar.py
Original file line number Diff line number Diff line change
Expand Up @@ -105,7 +105,8 @@ class Renderer(base.Renderer):
def search_base(self):
if not self._search_base:
self._search_base = uuidToObject(self.data.search_base_uid)
return self._search_base
# aq_inner, because somehow search_base gets wrapped by the renderer
return aq_inner(self._search_base)

@property
def search_base_path(self):
Expand Down
3 changes: 2 additions & 1 deletion plone/app/event/portlets/portlet_events.py
Original file line number Diff line number Diff line change
Expand Up @@ -111,7 +111,8 @@ class Renderer(base.Renderer):
def search_base(self):
if not self._search_base:
self._search_base = uuidToObject(self.data.search_base_uid)
return self._search_base
# aq_inner, because somehow search_base gets wrapped by the renderer
return aq_inner(self._search_base)

@property
def search_base_path(self):
Expand Down

0 comments on commit 6411887

Please sign in to comment.