RE: [Zope] Problem with <input type=hidden value="<dtml-var filen amex>" name =filenamex>
Hello, thanks for your answer. It didn't seem to work Peraphs this code (used inside an external python method)is not valid: while j < Col2: s = s + "<td>" s = s + '<input type="file" name="filename%s" VALUE="">' s = s % str(((i*Col2)+j+1)) #gives the right id to each filename variable s = s + "</td>" j = j + 1 Many thanks for your effort, Yannick -----Original Message----- From: Andy McKay [mailto:andym@ActiveState.com] Sent: 21 March 2001 20:26 To: servel yannick; zope@zope.org Subject: Re: [Zope] Problem with <input type=hidden value="<dtml-var filenamex>" name =filenamex> You cannot nest dtml tags inside another dtml tag, <dtml-var filename<dtml-var sequence-number>> is invalid. Untested: <dtml-var "_[filename+_['sequence-item']]"> Is probably what you want. -- Andy McKay.
s = s + '<input type="file" name="filename%s"VALUE="">' s = s % str(((i*Col2)+j+1)) is wrong, check a good python book for the correct syntax, but it should be s = s + '<input type="file" name="filename%s"VALUE="">' % str(((i*Col2)+j+1)) -- Andy McKay. ----- Original Message ----- From: "servel yannick" <yservel@glam.ac.uk> To: "'Andy McKay'" <andym@activestate.com>; <zope@zope.org> Sent: Wednesday, March 21, 2001 12:49 PM Subject: RE: [Zope] Problem with <input type=hidden value="<dtml-var filenamex>" name =filenamex>
Hello, thanks for your answer.
It didn't seem to work
Peraphs this code (used inside an external python method)is not valid:
while j < Col2: s = s + "<td>"
s = s + '<input type="file" name="filename%s" VALUE="">' s = s % str(((i*Col2)+j+1)) #gives the right id to each filename variable
s = s + "</td>"
j = j + 1
Many thanks for your effort,
Yannick
-----Original Message----- From: Andy McKay [mailto:andym@ActiveState.com] Sent: 21 March 2001 20:26 To: servel yannick; zope@zope.org Subject: Re: [Zope] Problem with <input type=hidden value="<dtml-var filenamex>" name =filenamex>
You cannot nest dtml tags inside another dtml tag, <dtml-var filename<dtml-var sequence-number>> is invalid.
Untested: <dtml-var "_[filename+_['sequence-item']]">
Is probably what you want.
-- Andy McKay.
participants (2)
-
Andy McKay -
servel yannick