Permalink
Browse files

take two at hiding the upgrade profiles from the quick installer

svn path=/plone.app.upgrade/branches/1.0/; revision=29163
  • Loading branch information...
1 parent e4c44da commit 1947aecd5042169f3599cf792814323f20f91e20 @davisagli davisagli committed Aug 19, 2009
Showing with 25 additions and 1 deletion.
  1. +4 −0 CHANGES.txt
  2. +15 −1 plone/app/upgrade/__init__.py
  3. +5 −0 plone/app/upgrade/configure.zcml
  4. +1 −0 setup.py
View
@@ -4,6 +4,10 @@ Changelog
1.0 - unreleased
----------------
+- Added a INonInstallable utility to hide this package's profiles from the
+ quick installer.
+ [davisagli]
+
- Fixed a couple profiles that were not registered for IMigratingPloneSiteRoot.
[davisagli]
@@ -1 +1,15 @@
-#
+from zope.interface import implements
+from Products.CMFQuickInstallerTool.interfaces import INonInstallable
+
+class HiddenProducts(object):
+ implements(INonInstallable)
+
+ def getNonInstallableProducts(self):
+ return [
+ 'plone.app.upgrade.v25',
+ 'plone.app.upgrade.v30',
+ 'plone.app.upgrade.v31',
+ 'plone.app.upgrade.v32',
+ 'plone.app.upgrade.v33',
+ 'plone.app.upgrade.v40',
+ ]
@@ -9,4 +9,9 @@
<include package=".v33" />
<include package=".v40" />
+ <utility
+ factory=".HiddenProducts"
+ name="plone.app.upgrades"
+ />
+
</configure>
View
@@ -21,6 +21,7 @@
zip_safe=False,
extras_require=dict(
test=[
+ 'Products.CMFQuickInstallerTool',
'Products.PloneTestCase',
'plone.contentrules',
'plone.app.i18n',

0 comments on commit 1947aec

Please sign in to comment.