[ZPT] [Bug] Unauthorized with "map" and Z SQL Methods

Dieter Maurer dieter@handshake.de
Mon, 27 Aug 2001 21:49:40 +0200 (CEST)


I would like to let you know, that applying "map" to
"Z SQL Method" results in a Tales expression may cause a
weird exception with ZPT 1.4 and Zope 2.3.3:

      Error type: Unauthorized
      Error value: __len__

Wrapping the "Shared.DC.ZRDB.Results.Results" instance into a 
"list(...)" is a work around.

More info: ZPT tracker item 51.


Dieter