Am Sat, 28 Feb 2009 00:28:38 +0300 schrieb Dan Korostelev:
> It assumes that the root folder has its own component registry, but the
> rootFolder factory doesn't create one, so it returns none as the next
> site manager. So, you need to call setSiteManager for the root folder
> after creating it. 


  >>> from site import MySite
  >>> mysite = MySite()
  >>> from import rootFolder 
  >>> root = rootFolder()
  >>> root.setSiteManager(LocalSiteManager(root))
  >>> root[u'mysite'] = mysite

works fine!

> However, I guess this case should be handled by
>'s event handler. I'll take a look at that tomorrow.

changing the assignment in (line 254) to

        site.getSiteManager().__bases__ = (next, ) if next else ()

should do it. 

Thanks a lot
Jens W. Klein, BlueDynamics Alliance,

Zope3-users mailing list

Reply via email to