Hi, I have a simple SQL method which just does a select on all rows, ie. "select * from users", which works. for security reasons I want to embed the sql statement in another dtml if- clause, like that: <dtml-if checkperm> select * from users </dtml-if> (checkperm is a DTML method which returns either 0 or 1) when I try to test the SQL method I get the following error: Error, exceptions.NameError: REQUEST SQL used: Could not render the query template! what am I doing wrong? thanks -Oliver _______________________________________________ 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 )