Ticket #13544 (confirmed Bug)

Opened 3 years ago

Last modified 3 years ago

prefs_install_products_form shows INonInstallable profiles.

Reported by: thet Owned by:
Priority: minor Milestone: 4.x
Component: General Version: 4.3
Keywords: Cc:

Description (last modified by thet) (diff)

the prefs_install_products_form control panel shows profiles, which are returned by a INonInstallable utility, but it shouldn't. the utility is registered like so (see:  https://github.com/plone/plone.formwidget.datetime/blob/master/plone/formwidget/datetime/configure.zcml):

configure.zcml

    <utility
      factory=".setuphandlers.HiddenProfiles"
      name="plone.formwidget.datetime"
      provides="Products.CMFPlone.interfaces.INonInstallable"
      />

setuphandlers.py

from zope.interface import implements
from Products.CMFPlone.interfaces import INonInstallable


class HiddenProfiles(object):
    implements(INonInstallable)

    def getNonInstallableProfiles(self):
        """Prevents profiles, which should not be user-installable from showing
        up in the profile list when creating a Plone site.

        plone.formwidget.datetime:default .. Without any forms actually using
        this packge, this it makes no sense. Packages, which use
        plone.formwidget.datetime, should install it's profile.

        """
        return [u'plone.formwidget.datetime:default']

of course, since it's just a template in plone_prefs skin folder.

we need a more modern install page.

Change History

comment:1 in reply to: ↑ description Changed 3 years ago by thet

sorry, deleted comment

Last edited 3 years ago by thet (previous) (diff)

comment:2 Changed 3 years ago by thet

  • Description modified (diff)

comment:3 Changed 3 years ago by kleist

  • Status changed from new to confirmed
  • Component changed from Unknown to General
Note: See TracTickets for help on using tickets.