Re: [Zope] <input type=hidden value='<dtml-var x>' name=x> and LOOP
24 Mar
2001
24 Mar
'01
8:14 p.m.
servel yannick writes:
.... <input type=hidden value='D:\TEMP\DEFAULT.PR~' name='filename1'> .... s = s + "<input type=hidden value='%s' name='filename%s'>" % ((REQUEST.filename + i), i) When you need attribute access for an attribute not given by a constant, you use "getattr", i.e. in your case:
getattr(REQUEST, 'filename%d' % i) In your special case, you could (alternatively) use: REQUEST.form['filename%d' % i] Dieter
9144
Age (days ago)
9144
Last active (days ago)
0 comments
1 participants
participants (1)
-
Dieter Maurer