Skip to content

Commit

Permalink
fix: getIcon for archetypes
Browse files Browse the repository at this point in the history
  • Loading branch information
Gagaro committed Dec 2, 2015
1 parent 7f880b7 commit 3087285
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 3 deletions.
3 changes: 3 additions & 0 deletions CHANGES.rst
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,9 @@ New:
- extended step to501 with reindexing getIcon (#1226)
[fgrcon]

- Reindex getIcon for all content types.
[Gagaro]

- Removed fake kupu tool and related settings and resources.
[maurits]

Expand Down
5 changes: 2 additions & 3 deletions plone/app/upgrade/v50/final.py
Original file line number Diff line number Diff line change
Expand Up @@ -50,10 +50,9 @@ def reindex_getIcon(context):
catalog = getToolByName(context, 'portal_catalog')
search = catalog.unrestrictedSearchResults
cnt=0
iface = "plone.dexterity.interfaces.IDexterityContent"
for brain in search(object_provides=iface):
for brain in search():
brain._unrestrictedGetObject().reindexObject(idxs=['getIcon'])
cnt += 1
logger.info('Reindexed `getIcon` for %s dexterity items' % str(cnt))
logger.info('Reindexed `getIcon` for %s items' % str(cnt))

reindex_getIcon(context)

0 comments on commit 3087285

Please sign in to comment.