[Zope] Re: ZSQL Woes....HELP!

The Doctor What docwhat@gerf.org
Sun, 11 Mar 2001 23:27:27 -0600


* The Doctor What (docwhat@gerf.org) [010311 23:00]:
> Then I get the error:
> Error Type: Bad Request
> Error Value: ['url_id', 'category_id', 'protocol_id']
> 
> It appears that ZSQL Method isn't recognizing that these variables
> are OPTIONAL and are not required.
> 
> HELP!  How do I fix this.  Again, a simple example would be great.

OK, I figured it out (after searching around with google for a
while):

Apparently, I can specify arguments to ZSQL Methods as if they are
python functions/methods with the added plus of adding type
checking.

So I changed my params from:
url_id
category_id
protocol_id

to:
url_id:int=0
category_id:int=0
protocol_id:int=0

If this is in the ZopeBook, I completly missed it.

Ciao!

-- 
"Smoke me a Kipper, I'll be back for breakfast"
		--"Ace" Rimmer (Red Dwarf)

The Doctor What: Second Baseman                  http://docwhat.gerf.org/
docwhat@gerf.org                                                   KF6VNC