<br>Thanks a lot..It worked..<br><b><i>Andreas Jung <lists@zopyx.com></i></b> wrote:<blockquote class="replbq" style="border-left: 2px solid rgb(16, 16, 255); margin-left: 5px; padding-left: 5px;"> <br><br>--On 18. Juni 2008 10:14:10 +0100 sujitha mary <suji102000@yahoo.co.in> <br>wrote:<br><br>> Hi,<br>><br>> I need to open and display an HTML file in zope.For that I uploaded the<br>> file as DTML document and tried to retrieve it from a page template.this<br>> is code which i wrote for this: <pre><br>> <span tal:condition="python:n=='geneprot'"><br>> tal:replace="here/PH226">this will </span></pre><br>> 'PH226' is the name of my uploaded file.<br><br>This will only work if the PH226 can be _aquired_ from your current context <br>object (check with "The Zope Book 2.7 edition" about _ACQUISITION_ - one of <br>the Zope core concepts.<br><br>> If i need to display more than one file at a time wht should i
do?i<br>> tried to modify my code for displaying the files which is selected by the<br>> user thru' a form.But it didn't work: This is the piece of code which i<br>> used<br>> <span tal:define="x request/phageid"><br>> <pre><br>> <span tal:condition="python:n=='geneprot'" tal:replace="here/x">this<br>> will </span></pre></span><br><br>Acquisition also applies here.<br><br>tal:replace="python: getattr(context, x)"<br><br>An alternative to acquisition for getting an object is traveral <br>(restrictedTraverse('/path/to/object').<br><br>I strongly recommend reading the basic Zope documentation first in order to <br>understand how acquistion works.<br><br>-aj<br></suji102000@yahoo.co.in></blockquote><br><p> 
<!--1--><hr size=1></hr> Bollywood, fun, friendship, sports and more. You name it, <a href="http://in.rd.yahoo.com/tagline_groups_1/*http://in.promos.yahoo.com/groups/bestofyahoo/"> we have it.</a>