<br>Thanks a lot..It worked..<br><b><i>Andreas Jung &lt;lists@zopyx.com&gt;</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>&gt; Hi,<br>&gt;<br>&gt;  I need to open and display an HTML file in zope.For that I uploaded the<br>&gt; file as DTML document and tried to retrieve it from a page template.this<br>&gt; is code which i wrote for this:      <pre><br>&gt;        <span tal:condition="python:n=='geneprot'"><br>&gt; tal:replace="here/PH226"&gt;this  will             </span></pre><br>&gt;  '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>&gt;  If i need to display more than one file at a time wht should i
 do?i<br>&gt; tried to modify my code for displaying the files which is selected by the<br>&gt; user thru' a form.But it didn't work: This is the piece of code which i<br>&gt; used<br>&gt;  <span tal:define="x request/phageid"><br>&gt;  <pre><br>&gt;   <span tal:condition="python:n=='geneprot'" tal:replace="here/x">this<br>&gt; 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>&#32;



      <!--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>