[Zope-CMF] condition error
Bryan C. Andregg
bryan.andregg@duke.edu
Thu, 27 Jun 2002 11:15:50 -0400
--jho1yZJdad60DJr+
Content-Type: text/plain; charset=us-ascii
Content-Disposition: inline
Content-Transfer-Encoding: quoted-printable
I'd like to remove the "View" choice from the default folder actions box. I=
've
copied the main_template and made some basic changes that work so I have the
skin setup properly.
I'd like to change the default from this:
<!-- folder actions -->
<tr class=3D"ContextActionsRow"
tal:condition=3D"folder_actions">
<td class=3D"ActionLink">=20
<span tal:repeat=3D"action folder_actions">
<a href=3D"../folder_contents"
tal:attributes=3D"href action/url"
tal:content=3D"action/name">Folder contents</a><br>
</span>
</td>
</tr>
By changing the tal:repeat to be something like:
<span tal:repeat=3D"action folder_actions"
tal:condition=3D"python:action.name !=3D 'View'">
This results in a TALESError for some reason. What am I doing wrong?
--=20
Bryan C. Andregg Duke University Medical Center
Programmer Dept. of Anesthesiology
e <bryan.andregg@duke.edu>
p +1 919 684 6201
--jho1yZJdad60DJr+
Content-Type: application/pgp-signature
Content-Disposition: inline
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.0.6 (GNU/Linux)
Comment: For info see http://www.gnupg.org
iD8DBQE9Gywmj9pElyS/cakRAtK0AJ9gawtzKBXkpbVMsRv9ukA8/5/b5ACfata0
3eY6Nc3cGKfdoOgjol2mN1k=
=I0ny
-----END PGP SIGNATURE-----
--jho1yZJdad60DJr+--