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().

[EMAIL PROTECTED], [EMAIL PROTECTED]

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




_______________________________________________
Zope maillist  -  [EMAIL PROTECTED]
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 )

Reply via email to