I have a custom portlet manager, and I'd like to blacklist (aka block) context (aka parent) portlets by default. I've found a couple of methods but they either require a specific location (so not sitewide) or will only work if I'm in a different package to where the portlet manager is defined (setuphanders.py is run before portlets.xml is imported and therefore the portlet manager doesn't exist yet), which is not a runner.
What I'd really like to do is use the genericSetup blacklist syntax in portlets.xml with a '*' for the location like this:
<blacklist
manager="custom.portletmanager"
location="*"
category="context"
status="block"
/>
But, alas, that doesn't seem to work. Any suggestions?