[Setup] Re: Policy product test fails - error

Maurits van Rees m.van.rees at zestsoftware.nl
Thu Sep 18 17:17:24 UTC 2008


afewtips.com, on 2008-09-13:
>     ZopeXMLConfigurationError: File
> "/home/webmaster/afewtips/src/afewtips.policy/afewtips/policy/configure.zcml",
> line 7.4-7.65
>     ConfigurationError: ('Invalid value for', 'initialize', 'ImportError:
> Module afewtips.policy has no global initialize')

>From that last line it looks like your configure.zcml is pointing to
an initialize method in your package and this method does not exist.

Adding the next two lines to afewtips/policy/__init__.py should be
enough usually:

def initialize(context):
    """Initializer called when used as a Zope 2 product."""

-- 
Maurits van Rees | http://maurits.vanrees.org/
            Work | http://zestsoftware.nl/
"This is your day, don't let them take it away." [Barlow Girl]




More information about the Setup mailing list