[Zope-CMF] Re: opaque items

Tres Seaver tseaver at palladion.com
Fri Mar 16 10:54:28 EDT 2007


-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Miles wrote:
> Hi,
> 
> I'm looking at the callable opaque items and trying to understand when 
> they might be used.  Apologies in advance for the vagueness of this 
> question.
> 
> Has anyone got any ideas about what sort of situations it would be 
> useful to use an ICallableOpaqueItem in - I'm having some trouble 
> understanding what sort of general problem they solve / what the 
> advantage is . . . and when you wouldn't use it!

I would consider it a wart, at this point:  it was intended to support
auto-recursive cut-copy-paste, without exposing the "opeaque" things as
ObjectManager items.  I think all of that could be better served by
having the event handlers (the replacements for 'manage_afterAdd',
'manage_beforeDelete', 'manage_afterClone') adapt the context object to
get the list of persistent subobjects.  Classes which have such
subobjects which are not "items" would need adapters.

> Also, does anyone know of any examples of its use other than CMFUid and 
> the CMF Discussion tool?  I think it might help if there was a bit more 
> for me to look at . . .
> 
> Thanks for any opinions

I strongly doubt anything else uses it.


Tres.
- --
===================================================================
Tres Seaver          +1 540-429-0999          tseaver at palladion.com
Palladion Software   "Excellence by Design"    http://palladion.com
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.2.2 (GNU/Linux)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org

iD8DBQFF+q+k+gerLs4ltQ4RAsoqAKCRtHjy1G61/y+aulvZI8LIv9QnGACePtJu
aUDXfT4SLDdeDwvc2XjyQu8=
=s+Tm
-----END PGP SIGNATURE-----



More information about the Zope-CMF mailing list