Comment 2 for bug 143505

Revision history for this message
yuppie (yuppie3) wrote :

'visibility' controls if the meta_type is globally available (visibility='Global') or only in containers that specify one of its interfaces (visibility=None). So we can't use 'visibility' to control the visibility in the ZMI.

I propose to use an empty 'action' to control this. In Zope 2.9 the five:registerClass directive allows to set empty 'action' values and main.dtml filters them out.

Unfortunately _verifyObjectPaste uses a hack to work around an checkPermission issue, making 'action' required for copyable meta_types.

So the proposed solution creates a dependency on http://www.zope.org/Collectors/Zope/1774 . If that is resolved, _verifyObjectPaste could be easily implemented without using the 'action'.