Skip to content

Commit

Permalink
Merge pull request #300 from plone/cmfplone-issue-1040
Browse files Browse the repository at this point in the history
Create standard news/events collections with selection.any.
  • Loading branch information
gforcada committed Nov 25, 2015
2 parents 976d9f5 + 560ff48 commit fe1d27e
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 6 deletions.
4 changes: 4 additions & 0 deletions CHANGES.rst
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,10 @@ New:

Fixes:

- Create standard news/events collections with ``selection.any``.
Issue https://github.com/plone/Products.CMFPlone/issues/1040
[maurits]

- Avoid AttributeError from potential acquisition issues with folder listings
[vangheem]

Expand Down
8 changes: 4 additions & 4 deletions plone/app/contenttypes/setuphandlers.py
Original file line number Diff line number Diff line change
Expand Up @@ -232,11 +232,11 @@ def create_news_topic(portal, target_language):
#: Query by Type and Review State
aggregator.query = [
{'i': u'portal_type',
'o': u'plone.app.querystring.operation.selection.is',
'o': u'plone.app.querystring.operation.selection.any',
'v': [u'News Item'],
},
{'i': u'review_state',
'o': u'plone.app.querystring.operation.selection.is',
'o': u'plone.app.querystring.operation.selection.any',
'v': [u'published'],
},
]
Expand Down Expand Up @@ -279,11 +279,11 @@ def create_events_topic(portal, target_language):
#: Query by Type and Review State
aggregator.query = [
{'i': 'portal_type',
'o': 'plone.app.querystring.operation.selection.is',
'o': 'plone.app.querystring.operation.selection.any',
'v': ['Event']
},
{'i': 'review_state',
'o': 'plone.app.querystring.operation.selection.is',
'o': 'plone.app.querystring.operation.selection.any',
'v': ['published']
},
]
Expand Down
4 changes: 2 additions & 2 deletions plone/app/contenttypes/tests/test_content_profile.py
Original file line number Diff line number Diff line change
Expand Up @@ -173,10 +173,10 @@ def test_news_allowable_types(self):
def test_news_aggregator_settings(self):
# Has the news aggregator (Collection) been set up?
query = [dict(i=u'portal_type',
o=u'plone.app.querystring.operation.selection.is',
o=u'plone.app.querystring.operation.selection.any',
v=[u'News Item']),
dict(i=u'review_state',
o=u'plone.app.querystring.operation.selection.is',
o=u'plone.app.querystring.operation.selection.any',
v=[u'published']),
]
collection = self.portal['news']['aggregator']
Expand Down

0 comments on commit fe1d27e

Please sign in to comment.