[Zope] Problem with passing <input type=hidden value='<dtml-var nbMenu>' name=nbMenu> from an external Method

servel yannick yservel@glam.ac.uk
Thu, 22 Mar 2001 19:47:00 -0000


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