<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML><HEAD>
<META http-equiv=Content-Type content="text/html; charset=iso-8859-1">
<META content="MSHTML 6.00.2900.2668" name=GENERATOR>
<STYLE></STYLE>
</HEAD>
<BODY bgColor=#ffffff>
<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>
<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></DIV></FONT>
<DIV><FONT face=Arial size=2></FONT> </DIV>
<DIV><FONT face=Arial size=2></FONT> </DIV>
<BLOCKQUOTE
style="PADDING-RIGHT: 0px; PADDING-LEFT: 5px; MARGIN-LEFT: 5px; BORDER-LEFT: #000000 2px solid; MARGIN-RIGHT: 0px">
<DIV style="FONT: 10pt arial">----- Original Message ----- </DIV>
<DIV
style="BACKGROUND: #e4e4e4; FONT: 10pt arial; font-color: black"><B>From:</B>
<A title=kristache@gmail.com href="mailto:kristache@gmail.com">Cristi
Barladeanu</A> </DIV>
<DIV style="FONT: 10pt arial"><B>To:</B> <A title=lists@andreas-jung.com
href="mailto:lists@andreas-jung.com">Andreas Jung</A> </DIV>
<DIV style="FONT: 10pt arial"><B>Cc:</B> <A title=zope@zope.org
href="mailto:zope@zope.org">zope@zope.org</A> </DIV>
<DIV style="FONT: 10pt arial"><B>Sent:</B> Friday, July 29, 2005 12:02
PM</DIV>
<DIV style="FONT: 10pt arial"><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">lists@andreas-jung.com</A>>
wrote:</SPAN>
<BLOCKQUOTE class=gmail_quote
style="PADDING-LEFT: 1ex; MARGIN: 0pt 0pt 0pt 0.8ex; BORDER-LEFT: rgb(204,204,204) 1px solid"><BR><BR>--On
28. Juli 2005 11:59:09 +0300 Cristi Barladeanu <<A
href="mailto:kristache@gmail.com">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>
<P>
<HR>
<P></P>_______________________________________________<BR>Zope maillist
-
Zope@zope.org<BR>http://mail.zope.org/mailman/listinfo/zope<BR>**
No cross posts or HTML encoding! **<BR>(Related lists -
<BR> http://mail.zope.org/mailman/listinfo/zope-announce<BR> http://mail.zope.org/mailman/listinfo/zope-dev
)<BR></BLOCKQUOTE></BODY></HTML>