
September 18th, 2002, 06:40 PM
|
 |
Contributing User
|
|
Join Date: Jan 2001
Location: St. George, Utah
|
|
If you want the result of a Python expression put in place of your dtml tag, you need to use dtml-var. dtml-call evaluates an expression, but does not put the result of that expression into the rendered page.
Fixed code:
Code:
<input type="text" value="<dtml-var expr="pyFeedback.doTotal('text1','text2')">" name="total:int:ignore_empty">
Ever consider using ZPT? Things are much easier to read/maintain in it.
Here's the same thing in ZPT:
Code:
<input type="text" tal:attributes="value python:here.pyFeedback.doTotal('text1','text2')" name="total:int:ignore_empty">
No "tags in attributes" that way! 
__________________
Lucas Marshall
|