Zope ZSQLMethod Question
sandj.williams at gte.net
Sun Sep 10 22:39:57 CEST 2000
Phil Harris wrote:
. . .
if in doubt always use the recognised method, in this case
if in your SQL method you use <dtml-var
all will be well.
If you haven't yet got the Zope Quick Reference, go get it now, you
regret it. ;)
. . .
Well, actually, I knew that AUTHENTICATED_USER is an object, but I still
can't seem to get it to work.
I alternate between
"can't render the query template"
after fiddling with quotes, dtml-var vs. dtml-sqlvar, etc.
Zope has encountered an error while publishing this resource.
Error Type: NameError
Error Value: AUTHENTICATED_USER
This resource may be trying to reference a nonexistent object
. . .
when invoking an ZSQLMethod with <dtml-var
"AUTHENTICATED_USER.getUserName()"> from, say, an index_html folder.
As to the ZOPE Quick Reference, neither Cyberunner's ZOPE Page or
Stephan's Zope Portal, the sources returned by a search on zope.org,
respond to me.
Thanks for your reply.
More information about the Python-list