[Zope] Quick question on ZSQL methods...

Anthony Baxter Anthony Baxter <anthony@interlink.com.au>
Thu, 09 Sep 1999 11:47:17 +1000


>>> Bill Anderson wrote
> > > <!--#var "AUTHENTICATED_USER.getUserName()"-->
> > >
> > > untested..
> ...
> > Hmm... nope, same thing.  This is getting kind of frustrating.
> > 
> > John
> <shot in the dark>
> try:
> where name = <!--#var AUTHENTICATED_USER-->

AUTHENTICATED_USER is in the arguments list, isn't it?

Alternatively, you could put 'username' in the argument list, then
call it with "sqlmeth(username=AUTHENTICATED_USER.getUserName())"

Anthony