Created
September 26, 2013 20:01
-
-
Save toutpt/6719746 to your computer and use it in GitHub Desktop.
This script can be used as Python Script in ZMI
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
catalog = container.portal_catalog | |
types = container.portal_types.objectIds() | |
views = {} | |
for t in types: | |
brains = catalog(portal_type=t) | |
for brain in brains: | |
ob = brain.getObject() | |
layout = ob.getLayout() | |
if t not in views:views[t] = [] | |
if layout not in views[t]: | |
views[t].append(layout) | |
print views | |
return printed |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment