Re[2]: [Zope3-dev] How to provide some default utilities for sub-site

2005-11-04 Thread Adam Groszer
Hello Dominik, I tried it using a subscriber. subscriber handler=.app.App_boot for=zope.app.container.interfaces.IObjectAddedEvent / def App_boot(event): # precondition obj = event.object if not IApplication.providedBy(obj): return

Re[2]: [Zope3-dev] How to provide some default utilities for sub-site

2005-11-04 Thread Adam Groszer
Hello Dominik, Great, it's working. Thanks. Friday, November 4, 2005, 4:28:13 PM, you wrote: DH Hi Adam DH First you have to assert that you object (obj) provides ISite. Then I DH would use the following attachted helper function `addLocalUtility` to DH add the your utiltiy. Least, you could