yuppie wrote:
        portal = getUtility(ISiteRoot)


I can't get this working. The lookup from within getExprContext fails. But:

- sm.registeredUtilities() contains the ISiteRoot registration

Is 'sm' actually the current site manager? Try to compare whether z.c.getSiteManager() matches 'sm'.

- if I first call getUtility(ISiteRoot) from somewhere else, the lookup doesn't fail in getExprContext either (I guess the result of some caching)


--
http://worldcookery.com -- Professional Zope documentation and training

_______________________________________________
Zope-CMF maillist  -  Zope-CMF@lists.zope.org
http://mail.zope.org/mailman/listinfo/zope-cmf

See http://collector.zope.org/CMF for bug reports and feature requests

Reply via email to