Nathan Van Gheem wrote:
Certainly someone else has come across this issue. Is this just a
limitation of local utilities? The utility is registered and work
fine. I can restart the server and the data is still there. It is just
on reinstall that I lose it. The probably is that it re-creates the tool.
I think the problem is in Products.GenericSetup.components - in
_initUtilities it does
elif factory is not None:
self.context.registerUtility(factory(), provided, name)
without first checking of a utility with this name for this interface
already exists.
I'd say that by default, it should not overwrite utilities like that,
though perhaps there should be a purge="true" option on the <utility />
statement to get this behaviour if required.
Perhaps a post to zope-cmf about this?
Martin
--
Author of `Professional Plone Development`, a book for developers who
want to work with Plone. See http://martinaspeli.net/plone-book
_______________________________________________
Product-Developers mailing list
[email protected]
http://lists.plone.org/mailman/listinfo/product-developers