error while changing a Zope2 product (Discount) to an egg (getpaid.discount)

6 views
Skip to first unread message

lucielejard

unread,
Jan 16, 2008, 9:26:26 AM1/16/08
to getpaid-dev
Hi,

I have a Zope2 product (https://svn.sixfeetup.com/svn/public/Discount/
trunk/) that I want to transform to an egg (https://
getpaid.googlecode.com/svn/trunk/getpaid.discount/) to include it with
getpaid.

This Zope2 product also has a Generic Setup profile and has some
imports from Products.PloneGetPaid.

I have a file named "profiles.zcml", in which there is the following
code:

<configure
xmlns="http://namespaces.zope.org/zope"
xmlns:genericsetup="http://namespaces.zope.org/genericsetup"
i18n_domain="plone">

<genericsetup:registerProfile
name="default"
title="getpaid.discount"
directory="profiles/default"
description="Default Profile for getpaid.discount."
provides="Products.GenericSetup.interfaces.EXTENSION"
/>

</configure>

Then when I start my instance, I have the following error:
ConfigurationError: ('Unknown directive',
u'http://namespaces.zope.org/genericsetup', u'registerProfile')
(full trace here: http://paste.plone.org/19039)

It seems to me that the problem is that Generic Setup is not yet
installed.

If I comment out the registerProfile part, then it errors out trying
to
register the profile of PloneGetPaid (because I import it in the egg).

What can I do for it to succeed to register the profile successfully?
Is
it really possible to change my product to an egg?

Thanks
Lucie
Reply all
Reply to author
Forward
0 new messages