Thank you all very much for your answers. <br>
The second solution that Jo provided worked exactly as I wanted:<br>
<br>
.. tal:content="python: getattr(obj, 'Title_%s'%lang)"..<br>
<br>
A good day to you all,<br>
Cristi<br><br><div><span class="gmail_quote">On 7/29/05, <b class="gmail_sendername">Jonathan</b> <<a href="mailto:dev101@magma.ca">dev101@magma.ca</a>> wrote:</span><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
<div><font face="Arial" size="2">I don't know if this is what you are looking
for, but can use a form of indirection that is available thru
dtml:</font></div>
<div><font face="Arial" size="2"></font> </div>
<div><font face="Arial" size="2"><dtml-call "REQUEST.set('a1',
'aaa')"><br><dtml-call "REQUEST.set('b1', 'a1')"></font></div>
<div><font face="Arial" size="2"></font> </div>
<div><font face="Arial" size="2"><dtml-var b1><br><br><br><dtml-var
"_[b1]"><br></font></div>
<div><font face="Arial" size="2">will print:</font></div>
<div><font face="Arial" size="2"></font> </div>
<div><font face="Arial" size="2"><font face="Times New Roman" size="3">a1 <br>aaa
</font></font></div>
<div><font face="Arial" size="2"><font face="Arial" size="2"></font></font> </div>
<div><font face="Arial" size="2"><font face="Times New Roman" size="3">This will allow
you to load variable b1 within a 'pointer' to a variable containing the data you
want.</font></font></div>
<div><font face="Arial" size="2"><font face="Arial" size="2"></font></font> </div>
<div><font face="Arial" size="2"><font face="Arial" size="2"></font></font> </div>
<div><font face="Arial" size="2"><font face="Times New Roman" size="3">hth
</font></font></div><span class="sg">
<div><font face="Arial" size="2"><font face="Arial" size="2"></font></font> </div>
<div><font face="Arial" size="2"><font face="Times New Roman" size="3">Jonathan</font></font></div>
<div><font face="Arial" size="2"></font> </div>
<div><font face="Arial" size="2"></font> </div>
</span><blockquote style="border-left: 2px solid rgb(0, 0, 0); padding-right: 0px; padding-left: 5px; margin-left: 5px; margin-right: 0px;"><div><span class="e" id="q_1056381b54d3bd67_3">
<div style="font-family: arial; font-style: normal; font-variant: normal; font-weight: normal; font-size: 10pt; line-height: normal; font-size-adjust: none; font-stretch: normal;">----- Original Message ----- </div>
<div style="background: rgb(228, 228, 228) none repeat scroll 0% 50%; -moz-background-clip: initial; -moz-background-origin: initial; -moz-background-inline-policy: initial; font-family: arial; font-style: normal; font-variant: normal; font-weight: normal; font-size: 10pt; line-height: normal; font-size-adjust: none; font-stretch: normal;">
<b>From:</b>
<a title="kristache@gmail.com" href="mailto:kristache@gmail.com" target="_blank" onclick="return top.js.OpenExtLink(window,event,this)">Cristi
Barladeanu</a> </div>
<div style="font-family: arial; font-style: normal; font-variant: normal; font-weight: normal; font-size: 10pt; line-height: normal; font-size-adjust: none; font-stretch: normal;"><b>To:</b> <a title="lists@andreas-jung.com" href="mailto:lists@andreas-jung.com" target="_blank" onclick="return top.js.OpenExtLink(window,event,this)">
Andreas Jung</a> </div>
<div style="font-family: arial; font-style: normal; font-variant: normal; font-weight: normal; font-size: 10pt; line-height: normal; font-size-adjust: none; font-stretch: normal;"><b>Cc:</b> <a title="zope@zope.org" href="mailto:zope@zope.org" target="_blank" onclick="return top.js.OpenExtLink(window,event,this)">
zope@zope.org</a> </div>
<div style="font-family: arial; font-style: normal; font-variant: normal; font-weight: normal; font-size: 10pt; line-height: normal; font-size-adjust: none; font-stretch: normal;"><b>Sent:</b> Friday, July 29, 2005 12:02
PM</div>
<div style="font-family: arial; font-style: normal; font-variant: normal; font-weight: normal; font-size: 10pt; line-height: normal; font-size-adjust: none; font-stretch: normal;"><b>Subject:</b> Re: [Zope] Composing
variables</div>
<div><br></div>Hello Andreas and thank for your answer. I've posted this
question to at-users<br>list too but still no answer. In fact this problem is
not related only to AT. Let me <br>give you an example:<br><br>var alternative
= 'bar' or 'baz'<br>var foo_baz = 'content based on baz'<br>var foo_bar =
'content based on bar'<br><br>These can be defined either in ZPT, DTML or
Python Script. The problem is the same.<br>The question is how can I obtain
the value of foo_$alternative.<br><br>An example written in
PHP:<br><br>$alternative = "bar";<br>$foo_bar = "content based on
bar";<br>echo ${"foo_".$alternative} <br><br>This will produce "content based
on bar".<br><br>Thanks for your time,<br>Cristi<br><br>
<div><span class="gmail_quote">On 7/28/05, <b class="gmail_sendername">Andreas
Jung</b> <<a href="mailto:lists@andreas-jung.com" target="_blank" onclick="return top.js.OpenExtLink(window,event,this)">lists@andreas-jung.com</a>>
wrote:</span>
<blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;"><br><br>--On
28. Juli 2005 11:59:09 +0300 Cristi Barladeanu <<a href="mailto:kristache@gmail.com" target="_blank" onclick="return top.js.OpenExtLink(window,event,this)">kristache@gmail.com</a>><br>wrote:<br><br>>
Good day everyone<br>><br>> I've defined some archetypes that contain
fields like Title_en, Title_de, <br>> Content_en, Content_de,
etc.<br>> Assuming that I've set a language var related to URL like (lang
= 'en'),<br>> how can i access them?<br>><br><br>Please ask
AT related questions on the at-users list. In general you should <br>not
access attributes in AT directly but only through the accessor
methods.<br>There is something like getField(fieldname) in the AT which
might help you<br>(look also at the AT
docs).<br><br>-aj<br><br></blockquote></div><br>
</span></div><p>
</p><hr>
<p></p>_______________________________________________<span class="q"><br>Zope maillist
-
<a href="mailto:Zope@zope.org" target="_blank" onclick="return top.js.OpenExtLink(window,event,this)">Zope@zope.org</a><br><a href="http://mail.zope.org/mailman/listinfo/zope" target="_blank" onclick="return top.js.OpenExtLink(window,event,this)">
http://mail.zope.org/mailman/listinfo/zope</a><br>**
No cross posts or HTML encoding! **<br>(Related lists -
<br> <a href="http://mail.zope.org/mailman/listinfo/zope-announce" target="_blank" onclick="return top.js.OpenExtLink(window,event,this)">http://mail.zope.org/mailman/listinfo/zope-announce</a><br> <a href="http://mail.zope.org/mailman/listinfo/zope-dev" target="_blank" onclick="return top.js.OpenExtLink(window,event,this)">
http://mail.zope.org/mailman/listinfo/zope-dev</a>
)<br></span><p></p></blockquote>
<br>_______________________________________________<br>Zope maillist - <a onclick="return top.js.OpenExtLink(window,event,this)" href="mailto:Zope@zope.org">Zope@zope.org</a><br><a onclick="return top.js.OpenExtLink(window,event,this)" href="http://mail.zope.org/mailman/listinfo/zope" target="_blank">
http://mail.zope.org/mailman/listinfo/zope</a><br>** No cross posts or HTML encoding! **<br>(Related lists -<br> <a onclick="return top.js.OpenExtLink(window,event,this)" href="http://mail.zope.org/mailman/listinfo/zope-announce" target="_blank">
http://mail.zope.org/mailman/listinfo/zope-announce</a><br> <a onclick="return top.js.OpenExtLink(window,event,this)" href="http://mail.zope.org/mailman/listinfo/zope-dev" target="_blank">http://mail.zope.org/mailman/listinfo/zope-dev
</a> )<br><br><br></blockquote></div><br>