[Zope] Error Value: len() of unsized object at SQL method

Peter Bengtsson mail@peterbe.com
Wed, 29 Aug 2001 18:33:56 +0200


There's nothing wrong with the DTML.

Paste the traceback in and we'll help you.
And decide which works. Does that ZSQL method work independent of how you
use it?
Does the DTML work when looping on something else than that object?

Cheers, Peter


> Hello!
>
> I have an SQL select. If it gives no result, I get this error message
> Error Type: TypeError
> Error Value: len() of unsized object
>
> How can I manage it?
>  I tried this:
> <dtml-in ZSQLSelect>
> foo, bar.....
> <dtml-else>
> no result
> </dtml-in>
>
> but still get the error.
>
>    Thanks:
>
>     Lajos Kerekes
>
>
>
> _______________________________________________
> Zope maillist  -  Zope@zope.org
> http://lists.zope.org/mailman/listinfo/zope
> **   No cross posts or HTML encoding!  **
> (Related lists -
>  http://lists.zope.org/mailman/listinfo/zope-announce
>  http://lists.zope.org/mailman/listinfo/zope-dev )