[Zope] More newbie questions: can't find object by ID?

Scott Anderson sanderson@ttm.com
Tue, 14 Sep 1999 10:39:28 -0400


Hi all (again),

Here's my code:

 DTML Document at /Reporting/Admin/report_management.html  

<!--#var standard_html_header-->
<!--#if tblReportType-->
 <table>
 <tr><th>ID</th><th>Report Description</th></tr>
 <!--#in tblReportType sort=description-->
 <tr>
 <td><!--#var reportTypeID--></td>
 <td><!--#var description--></td>
 </tr>
 <!--#/in-->
 </table>
<!--#else-->
<BR><BR>
There are no defined reports at this time.
<BR><BR>
<!--#/if-->
<!--#var standard_html_footer-->


tblReportType is a SQL Method: Z SQL Method at
/Reporting/Admin/admin_sql/tblReportType

tblReportType has been tested and it works fine, returning two records.

However, the above document returns only "There are no defined reports
at this time."

If I remove the '#if' tags, I receive:


Zope has encountered an error while publishing this resource. 

Error Type: KeyError
Error Value: tblReportType

Why is Zope not finding the SQL Method?

Thanks,

-scott