[Zope] tal:condition --SOLUTION
zope
zope@stylusinc.net
Thu, 22 Aug 2002 20:47:52 +0530
This is a multi-part message in MIME format.
------=_NextPart_000_0098_01C24A1D.2EFD89B0
Content-Type: text/plain;
charset="iso-8859-1"
Content-Transfer-Encoding: quoted-printable
Hi All
Thanks once again for all the suggestions .
I tried out almost every method and I have come up with a mixed version =
of all the suggestions which eventually does the work.
<div tal:condition=3D"exists:request/form/lkid" tal:omit-tag=3D"">
<div tal:define=3D"global mName =
python:here.oms.Users.lib.pset_links(lkid=3Drequest.form['lkid'])">
</div>
<div metal:use-macro=3D"container/zptmac_memPLall/macros/?mName">
</div>
</div>
Now the first time the page loads I dont see any macro.
After the page is reloaded with the variable "lkid" having a value I get =
the desired macro running.
I hope this can be of use to everyone.One of the reasons I was having =
problems was that the macro is actually a table=20
and the XML was not being able to render the table tag inside the div =
tag.
Thanks and Best Regards
John Kunchandy
---
Outgoing mail is certified Virus Free.
Checked by AVG anti-virus system (http://www.grisoft.com).
Version: 6.0.381 / Virus Database: 214 - Release Date: 8/2/2002
------=_NextPart_000_0098_01C24A1D.2EFD89B0
Content-Type: text/html;
charset="iso-8859-1"
Content-Transfer-Encoding: quoted-printable
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML><HEAD>
<META http-equiv=3DContent-Type content=3D"text/html; =
charset=3Diso-8859-1">
<META content=3D"MSHTML 6.00.2600.0" name=3DGENERATOR>
<STYLE></STYLE>
</HEAD>
<BODY bgColor=3D#ffffff>
<DIV><FONT face=3DArial size=3D2>Hi All</FONT></DIV>
<DIV><FONT face=3DArial size=3D2></FONT> </DIV>
<DIV><FONT face=3DArial size=3D2>Thanks once again for all the =
suggestions=20
.</FONT></DIV>
<DIV><FONT face=3DArial size=3D2>I tried out almost every method =
and I have=20
come up with a mixed version of all the suggestions which eventually =
does the=20
work.</FONT></DIV>
<DIV><FONT face=3DArial size=3D2></FONT> </DIV>
<DIV><FONT face=3DArial size=3D2><div=20
tal:condition=3D"exists:request/form/lkid" =20
tal:omit-tag=3D""><BR> <div tal:define=3D"global =
mName=20
python:here.oms.Users.lib.pset_links(lkid=3Drequest.form['lkid'])"><BR=
> =20
</div><BR> <div=20
metal:use-macro=3D"container/zptmac_memPLall/macros/?mName"><BR> =
=20
</div><BR></div></FONT></DIV>
<DIV><FONT face=3DArial size=3D2></FONT> </DIV>
<DIV><FONT face=3DArial size=3D2>Now the first time the page loads I =
dont see any=20
macro.</FONT></DIV>
<DIV><FONT face=3DArial size=3D2>After the page is reloaded with the =
variable "lkid"=20
having a value I get the desired macro running.</FONT></DIV>
<DIV><FONT face=3DArial size=3D2>I hope this can be of use to =
everyone.One of the=20
reasons I was having problems was that the macro is actually a table=20
</FONT></DIV>
<DIV><FONT face=3DArial size=3D2>and the XML was not being able to =
render the=20
table tag inside the div tag.</FONT></DIV>
<DIV><FONT face=3DArial size=3D2></FONT> </DIV>
<DIV><FONT face=3DArial size=3D2>Thanks and Best Regards</FONT></DIV>
<DIV><FONT face=3DArial size=3D2>John Kunchandy</DIV>
<DIV><BR> </DIV>
<DIV> </DIV>
<DIV><BR>---<BR>Outgoing mail is certified Virus Free.<BR>Checked by AVG =
anti-virus system (<A=20
href=3D"http://www.grisoft.com">http://www.grisoft.com</A>).<BR>Version: =
6.0.381 /=20
Virus Database: 214 - Release Date: 8/2/2002</DIV></FONT></BODY></HTML>
------=_NextPart_000_0098_01C24A1D.2EFD89B0--