[Zope-dev] Features for Zope 2.8
Christian Theune
ct at gocept.com
Thu Jan 29 05:22:30 EST 2004
Hi.
As Zope 2.7 looks like could-be-out-soon. I'd like to ask if there is
room for including the post-traverse patch in Zope 2.8. I'm currently
maintaining it as a patch on a branch for Zope 2.7, but would like to
see it back in the mainstream.
Short description of it:
- Sometimes you want to run code before the published object as in
the before_traverse hooks. But there you miss to variables: The object
to be published and security context.
- During traversal you can register yourself to be called after those
two variables have been determined. This results in a chain of methods
to be callen.
- When the methods are callen, they get the necessary contexts and
can return None (everything as usual) or return something else, that
should be used for publication instead of the object that was found by
traversal. (Note: I intended it that the REQUEST['PUBLISHED']
remains the one found by traversal.) This also discontinues the chain
of post traversal calls.
If this is feature could be a candidate for 2.8, i'll write a more
in-depth proposal on it, and can provide the necessary code.
Cheers,
Christian
--
Christian Theune, gocept gmbh & co. kg
http://www.gocept.com - ct at gocept.com
fon: 03496 3099112 fax: 03496 3099118 mobile: 0179 7808366
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 189 bytes
Desc: Dies ist ein digital signierter Nachrichtenteil
Url : http://mail.zope.org/pipermail/zope-dev/attachments/20040129/f290230c/attachment.bin
More information about the Zope-Dev
mailing list