I think (that may be stupid, because I'm not an expert) that the
module is not 100% consistent, once it is checking on the passed
folder's SiteManager (in ensureUtility) and then tries to add the
utility to a maybe completely different SM (in addUtility).
I propose a change to getSiteManagerDefault:
#default = zapi.traverse(folder.getSiteManager(), 'default')
#package_name = '/++etc++site/default'
#package = traverse(root_folder, package_name)
package = traverse(root_folder.getSiteManager(), 'default')
After that the module could be used even on sub-sites.
Adam mailto:[EMAIL PROTECTED]
Quote of the day:
Religion is the first thing and the last thing, and until a man has found God,
and been found by God, he begins at no beginning and works to no end.
- H.G. Wells
Zope3-dev mailing list