Skip to content

Instantly share code, notes, and snippets.

@avoinea
Last active January 13, 2016 13:12
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save avoinea/4016426 to your computer and use it in GitHub Desktop.
Save avoinea/4016426 to your computer and use it in GitHub Desktop.
Uninstall eea.facetednavigation
from zope.interface import providedBy
from zope.interface import noLongerProvides
brains = context.portal_catalog(object_provides='eea.facetednavigation.subtypes.interfaces.IFacetedNavigable')
for brain in brains:
doc = brain.getObject()
interfaces = providedBy(doc).flattened()
for interface in interfaces:
if interface.__identifier__.startswith('eea.faceted'):
noLongerProvides(doc, interface)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment