[Zope3-Users] make a Folder a Site

Jan-Wijbrand Kolman jw at infrae.com
Mon May 30 03:45:26 EDT 2005


Ivo van der Wijk wrote:
> What I currently do is:
> 
> Derive from Folder and SiteManagerContainer, and in the __init__ do
> the following:
> 
>         self.setSiteManager(LocalSiteManager(self))
>         ## required for getUtility to work within this request
>         setSite(self)
             ^
             |
-------------+

I read your reply, but I basically read it to quickly and missed the setSite()
hook. And of course, that was why I couldn't get to utilities I added to my site.

So, now I can :-) Thanks.


kind regards,
jw

-- 
Jan-Wijbrand Kolman
jw at infrae.com


More information about the Zope3-users mailing list