Wichert Akkerman wrote:
Previously Derek Richardson wrote:
So, I need to have a portal action that queries for an adapter and gets a utility in its available_expr. Can't do that in an expr, it seems. Tried module['zope.component'].getUtility(...), but security error.

module['Products.CMFCore.utils'].getUtilityByInterfaceName

While I struggle with getting this to work through the security infrastructure, can I ask if there is a similar one-liner for querying an adapter from restricted code? I read through Products.CMFCore.utils and didn't see one...

Thanks,

Derek


_______________________________________________
Product-Developers mailing list
[email protected]
http://lists.plone.org/mailman/listinfo/product-developers

Reply via email to