Permalink
Browse files

hide uninstall profile at install time using Grok

  • Loading branch information...
1 parent 1269a3e commit 089b42499f68609ca61bd3489755a817815b046d @hvelarde hvelarde committed Dec 20, 2011
Showing with 16 additions and 0 deletions.
  1. +16 −0 src/collective/newsflash/setuphandlers.py
@@ -0,0 +1,16 @@
+# -*- coding:utf-8 -*-
+
+from five import grok
+
+from Products.CMFPlone.interfaces import INonInstallable
+
+
+class HiddenProfiles(grok.GlobalUtility):
+
+ grok.implements(INonInstallable)
+ grok.provides(INonInstallable)
+ grok.name('collective.newsflash')
+
+ def getNonInstallableProfiles(self):
+ profiles = ['collective.newsflash:uninstall', ]
+ return profiles

0 comments on commit 089b424

Please sign in to comment.