tal:condition --SOLUTION
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="exists:request/form/lkid" tal:omit-tag=""> <div tal:define="global mName python:here.oms.Users.lib.pset_links(lkid=request.form['lkid'])"> </div> <div metal:use-macro="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 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
participants (1)
-
zope