[Zope-CMF] bug in search.pt
Mark McEahern
mark@mceahern.com
Mon, 13 Jan 2003 12:45:30 -0600
This is a multi-part message in MIME format.
------=_NextPart_000_009B_01C2BB01.A7D94270
Content-Type: text/plain;
charset="iso-8859-1"
Content-Transfer-Encoding: 7bit
Here's a fix to a bug in search.pt where it assumes that the results all
call their view action 'view':
// mark
------=_NextPart_000_009B_01C2BB01.A7D94270
Content-Type: application/octet-stream;
name="search.pt.patch"
Content-Transfer-Encoding: quoted-printable
Content-Disposition: attachment;
filename="search.pt.patch"
Index: zpt_generic/search.pt=0A=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=0A=
RCS file: /cvs-repository/CMF/CMFDefault/skins/zpt_generic/search.pt,v=0A=
retrieving revision 1.3=0A=
diff -c -b -r1.3 search.pt=0A=
*** zpt_generic/search.pt 5 Jan 2002 01:30:19 -0000 1.3=0A=
--- zpt_generic/search.pt 13 Jan 2003 18:44:09 -0000=0A=
***************=0A=
*** 30,36 ****=0A=
<tbody tal:repeat=3D"results batch"=0A=
tal:condition=3D"results">=0A=
<tr>=0A=
! <td tal:define=3D"global objURL python: results.getURL() + '/view'">=0A=
<span tal:condition=3D"results/getIcon|nothing">=0A=
<a href=3D"" tal:attributes=3D"href objURL"><img src=3D"" =
border=3D"0" alt=3D"" title=3D""=0A=
tal:define=3D"alt =
results/Type"=0A=
--- 30,37 ----=0A=
<tbody tal:repeat=3D"results batch"=0A=
tal:condition=3D"results">=0A=
<tr>=0A=
! <td tal:define=3D"view_action python: =
results.getObject().getTypeInfo().getActionById('view');=0A=
! global objURL python: results.getURL() + '/' + =
view_action">=0A=
<span tal:condition=3D"results/getIcon|nothing">=0A=
<a href=3D"" tal:attributes=3D"href objURL"><img src=3D"" =
border=3D"0" alt=3D"" title=3D""=0A=
tal:define=3D"alt =
results/Type"=0A=
------=_NextPart_000_009B_01C2BB01.A7D94270--
-