[Zope] TinyTable : filter query pb

Aleksander Salwa ololo@zeus.polsl.gliwice.pl
Fri, 26 Jan 2001 16:18:47 +0100 (CET)


On Fri, 26 Jan 2001, Thierry Pasquier wrote:

> usagers is a TinyTable
> 
> this, is ok :
> <dtml-call "REQUEST.set('usager','bruno')">
> <dtml-in "usagers(ident=usager)">
> ...
> 
> but, not this : why ?
> <dtml-call "REQUEST.set('usager',AUTHENTICATED_USER)">
> <dtml-in "usagers(ident=usager)">

Because 'bruno' is a string, while AUTHENTICATED_USER is an instance of
some class (when used in <dtml-var AUTHENTICATED_USER> it is automatically
converted to string - user's id in that case).
Try AUTHENTICATED_USER.getId().

ololo@zeus.polsl.gliwice.pl, oleks@helper.pl

/--------------------------------------\
| `long long long' is too long for GCC |
\--------------------------------------/