[Zope] SQL input form

Hannu Krosing hannu@tm.ee
Sun, 02 Jan 2000 16:22:22 +0200


Steve Spicklemire wrote:
> 
....
> and here is the DTML to use it to add a customer....
> 
> <!--#var standard_html_header-->
> <!-- bare bones.. let's get the data in there... -->
> 
> <!--#call "insertCustomer(company_name=company_name,
> address1 = company_address1, address2 = company_address2,
> city = company_city, state = company_state, zip = company_zip,
> phone = main_phone, contact_name = contact_name,
> contact_email = contact_email)"-->

If you are just inserting the values from REQUEST, you don't 
even need all the xxx=xxx arguments, as ZSQLMethods can get them
from REQUEST automatically.

They must however be defined in the arguments part of SQL method.

--------------
Hannu