[Zope] ZSQL question

Milos Prudek milos.prudek@tiscali.cz
Thu, 28 Mar 2002 09:30:48 +0100


> I have a ZSQL insert function that requires an optional parameter. 
> 
> The variables are coming from an HTML form, and one of the variables is
> a checkbox. Apparently, if the checkbox is unchecked, the variable
> doesn't appear.

That's correct. A rather unfortunate feature of HTML.

Personally, I validate all HTML form input in a Python Script anyway. So 
it's easy to use Python to check for form variable existence, and 
provide a value for ZSQL method - because the ZSQL method is called by 
the Python Script.


> Also - is there a comprehensive ZSQL document anywhere?

I'm afraid that Zope Book is the best resource existing. You can 
download Zope Book at http://www.zope.org free of charge.

-- 
Milos Prudek