Thomas Weiner wrote:
Christian Selig schrieb: [...]
Okay, no problem so far. But when I want to compare the value to a parameter I have given to the document via a <FORM>:
---snip <dtml-in "externalMeth(p)"> <dtml-var aid> <!-- Okay, works fine of course --> <dtml-if "aid == param"> Hi there! </dtml-if> ---snap
The expression evaluates always to false. I have traced the problem back with an external method ("<dtml-if "equals(aid, param)">"). When trying the "len" function on both variables, "param" is not a problem (it's a string from the the <FORM>), but "aid" complains that it was an "unsized object". How do I compare them? <dtml-if "_.str(aid)==param"> _.str(aid) should return a string presentation of aid. It does, but the "string" is still an unsized object. 'Scuse me, I thought Python is not strong-typed?
Christian -- \|/ ____ \|/ http://www.bnv-bamberg.de/home/sledge/ (Home) "@'/ ,. \'@" http://linux.bnv-bamberg.de/ (LUG Bamberg) /_| \__/ |_\ http://miranda.sourceforge.net/ (Miranda Project) \__U_/ http://fsub.schule.de/ (Linux for Schools)