Skip to content

Commit

Permalink
- Check with getattr if item isPrincipiaFolderish as Comment does
Browse files Browse the repository at this point in the history
  • Loading branch information
ichim-david committed Aug 30, 2016
1 parent ef97ced commit f9c2019
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
4 changes: 3 additions & 1 deletion CHANGES.rst
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,9 @@ New features:

Bug fixes:

- *add item here*
- Check with getattr if item isPrincipiaFolderish as Comment does
not have this attribute which would render an AttributeError
[ichim-david]


1.2.1 (2016-08-15)
Expand Down
2 changes: 1 addition & 1 deletion plone/app/collection/collection.py
Original file line number Diff line number Diff line change
Expand Up @@ -170,7 +170,7 @@ def getFoldersAndImages(self):

for item in results:
item_path = item.getPath()
if item.isPrincipiaFolderish:
if getattr(item, 'isPrincipiaFolderish', []):
query = {
'portal_type': image_types,
'path': item_path,
Expand Down

0 comments on commit f9c2019

Please sign in to comment.