Skip to content

Export/import of local utilities considered harmful #3

@tseaver

Description

@tseaver

In https://bugs.launchpad.net/zope-cmf/+bug/281216, @cjw296 reported:

For background see: http://dev.plone.org/plone/ticket/8579

Summary of the problem: You cannot re-constitute local utilities just from a dotted name:

  • the constructor may take parameters. Indeeed, imnsho, this is how utilities that require configuration should be configured.
  • the utilities may be changed after registration, as is the case with PortletType utilities.

This is with Plone 3.1.1 and associated CMF and Zope versions.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions