Peter,
That definitely looks promising. I've tried a couple of ways, but I
can't make it so this applies to all DTML Methods. Any ideas?
-Andrew
On Jun 7, 2006, at 6/7/2006 4:10 PMMDT, Peter Bengtsson wrote:
I much prefer to use __before_publishing_traverse__.
Eg.
class MyProduct(Something):
def __before_publishing_traverse__(self, object, REQUEST):
""" sort things out before publising object """
stack = REQUEST['TraversalRequestNameStack']
if len(stack)==2 and stack[0]=='members' and stack
[1].isdigit():
REQUEST.set('member_id', stack[1])
stack.remove(stack[1])
That's my opinion.
_______________________________________________
Zope maillist - [email protected]
http://mail.zope.org/mailman/listinfo/zope
** No cross posts or HTML encoding! **
(Related lists -
http://mail.zope.org/mailman/listinfo/zope-announce
http://mail.zope.org/mailman/listinfo/zope-dev )