-----Original Message----- From: Casey Duncan [mailto:cduncan@kaivo.com] Sent: 22 March 2001 23:45 To: servel yannick Cc: zope@zope.org Subject: Re: [Zope] Problem with passing <input type=hidden value='<dtml-var nbMenu>' name=nbMenu> from an external Method servel yannick wrote:
Hi all,
Source code of SaveMenu.html
<dtml-var "SaveMenu(REQUEST=REQUEST)">
Source code of the external method SaveMenu
def SaveMenu(self, REQUEST=None): s="" i = 1 s = s +"<input type=hidden value='<dtml-var nbMenu>' name=nbMenu>" return s
And here is the code returned when SaveMenu is executed:
<input type=hidden value='<dtml-var nbMenu>' name=nbMenu>
instead of value='<dtml-var nbMenu>' I should have value=(an integer)
Is there an alternative solution to fix that problem?
Many Thanks,
Yannick
try: s = s +'<input type=hidden value="%s" name=nbMenu>' % REQUEST.nbMenu Assuming nbMenu is in REQUEST. -- | Casey Duncan | Kaivo, Inc. | cduncan@kaivo.com `------------------> It works perfectly, Thanks a lot Yannick