Well, you could maybe create a new type of DTML Method called Clear
DTML Method which would in principle look something like this:
from zope.somewhere import DTMLMethod
meta_type = "Clear " + DTMLMethod.meta_type
do your stuff
# cross your fingers that it will work
But this restricts you to DTML Methods. So if you change to Page
Templates one day you'll have to recode the url param stuff.
On 6/7/06, Andrew Hedges <[EMAIL PROTECTED]> wrote:
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?
On Jun 7, 2006, at 6/7/2006 4:10 PMMDT, Peter Bengtsson wrote:
> I much prefer to use __before_publishing_traverse__.
> 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=='members' and stack
> REQUEST.set('member_id', stack)
> That's my opinion.
Zope maillist - Zope@zope.org
** No cross posts or HTML encoding! **
(Related lists -