Zope ZSQLMethod Question

Phil Harris phil.harris at zope.co.uk
Sun Sep 10 09:33:22 EDT 2000


because AUTHENTICATED_USER is an object whose 'default' property/method is
getUserName.  Zope is clever/stupid enough to render this automatically in
simple <dtml-var...> tags, but not in other places.

if in doubt always use the recognised method, in this case
AUTHENTICATED_USER.getUserName.

if in your SQL method you use <dtml-var "AUTHENTICATED_USER.getUserName()">,
all will be well.

If you haven't yet got the Zope Quick Reference, go get it now, you won't
regret it. ;)

hth
Phil
phil.harris at zope.co.uk


"Steve Williams" <sandj.williams at gte.net> wrote in message
news:39BAE83B.1C490085 at gte.net...
> Why is it that
>
>     <dtml-var AUTHENTICATED_USER>
>
> will display properly in a document, but
>
>     Select * from zot where x = <dtml_sqlvar AUTHENTICATED_USER
> type=string>
>
> will fail in a ZSQLMethod invoked by a DTML document?
>
>
>
>
>
>





More information about the Python-list mailing list