You are not logged in Log in Join
You are here: Home » Members » Jfarr's Zope Page » Patches » dtml-tree Patch

Log in
Name

Password

 

Overview

This patch adds a new parameter to the dtml-tree tag called urlparam_expr. This allows an expression to be evaluated at each node to determine the urlparam.

Example:
<dtml-tree some_folder urlparam_expr="'doc_id='+_['sequence_item'].id()"> ... </dtml-tree>

Downloading

You can obtain the patch as either:

a tar file or
a diff file

Installing

Unpack the tar file in your top-level Zope directory. This will overwrite the following file:

lib/python/TreeDisplay/TreeTag.py

These are modified versions of the files shipped with Zope 2.5.1.

Alternately, you can just use patch to apply the diff file to these files directly.

patch -p0 < tree-tag-2.5.1-patch.diff

Please contact me at [email protected] with any problems or questions concerning this patch.