[Zope] Comparing "unsized objects" and strings

Christian Selig christian@newopenness.de
Mon, 06 Mar 2000 20:53:12 +0100


Thomas Weiner wrote:
> > 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?
> hmm .. untested:
> <dtml-if "_.str(aid)==param">
> _.str(aid) should return a string presentation of aid.

Okay, I've tried it 20 times, I took for a walk 20 minutes, tried it
once again and now it works! :-) Thank you very much!!!

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)