-----BEGIN PGP SIGNED MESSAGE-----
Jim Abramson wrote:
> In my Zope 2.7 Product, I'm trying to implement a special folder, which
> intercepts the publishing call to any subobject and wraps the entire
> call in another.
> A concrete example: where the default action would be to traverse
> /MyProduct/SpecialFolder/something, and publish the attr 'something'
> from SpecialFolder, I want this to happen instead:
> return mapply( something, blahblah...)
> Why? I need to do stuff to the REQUEST before the object is called (this
> part wasn't difficult), and then do something *after* it's called - no
> matter what the results were. But only for publishables that live in or
> beneath the Special Folder.
Sounds like you want what AccessRules provide, which is a way to provide
a configurable hook into the publishing traversal process. The
following thread explains the rationale for that hook, from before it
was included in Zope proper:
> In fact I have something working, but one big problem - it breaks
> management screens in a bad way. The implementation is pasted below.
> Is there some much simpler way to accomplish this behavior? And am I
> short-circuiting security machinery in some dangerous way?
Tres Seaver [EMAIL PROTECTED]
Palladion Software "Excellence by Design" http://palladion.com
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.2.5 (GNU/Linux)
Comment: Using GnuPG with Thunderbird - http://enigmail.mozdev.org
-----END PGP SIGNATURE-----
Zope maillist - Zope@zope.org
** No cross posts or HTML encoding! **
(Related lists -