[Zope] Problem with passing <input type=hidden value='<dtml-var
nbMenu>' name=nbMenu> from an external Method
Casey Duncan
cduncan@kaivo.com
Thu, 22 Mar 2001 16:44:54 -0700
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
`------------------>