<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 TRANSITIONAL//EN">
<HTML>
<HEAD>
<META HTTP-EQUIV="Content-Type" CONTENT="text/html; CHARSET=UTF-8">
<META NAME="GENERATOR" CONTENT="GtkHTML/3.0.8">
</HEAD>
<BODY>
I've searched everywhere for a seamingly obvious thing to have in the documentation - how to call a dynamic zsql method from a zope page template using arguments.<BR>
<BR>
What I need is something like this:<BR>
<BR>
<div tal:define="sqlRows nocall:here/ZSQLTerritoryList(parent_id=parent_id)"><BR>
<select name="country_list"><BR>
<option value="">ANY</option><BR>
<option tal:repeat="sqlRow sqlRows" ...<BR>
etc...<BR>
<BR>
but obviously the first line of code doesn't work. How else are variables passed do zsql methods from page templates?<BR>
<BR>
Thanks, Nick<BR>
<BR>
</BODY>
</HTML>