Skip to content

Commit

Permalink
Avoid showing the uninstall profile
Browse files Browse the repository at this point in the history
  • Loading branch information
gforcada authored Nov 8, 2016
1 parent c058e41 commit 4034e65
Showing 1 changed file with 16 additions and 0 deletions.
16 changes: 16 additions & 0 deletions plone/app/iterate/profiles.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
# -*- coding: utf-8 -*-
from zope.interface import implementer
from Products.CMFPlone.interfaces import INonInstallable


@implementer(INonInstallable)
class HiddenProfiles(object):

def getNonInstallableProfiles(self):
"""Prevents uninstall profile from showing up in the profile list
when creating a Plone site.
"""
return [
u'plone.app.iterate:uninstall',
]

0 comments on commit 4034e65

Please sign in to comment.