Skip to content

Instantly share code, notes, and snippets.

@mattss
Created June 17, 2015 11:12
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 1 You must be signed in to fork a gist
  • Save mattss/d8e21dbe13593162ba12 to your computer and use it in GitHub Desktop.
Save mattss/d8e21dbe13593162ba12 to your computer and use it in GitHub Desktop.
Content audit
# quick and dirty skin script to audit a site's content
brains = context.portal_catalog.searchResults()
types = {}
for brain in brains:
ctype = brain['portal_type']
if ctype in types:
types[ctype] = types[ctype] + 1
else:
types[ctype] = 1
print types
return printed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment