[Zope] New version of book uploaded
Jochen Knuth
jok-zope@ipro.de
Fri, 08 Dec 2000 12:30:55 +0100
and another one:
http://www.zope.org/Members/michel/ZB/RelationalDatabases.html
Figure 10-5: The Add form for Z SQL Methods
As usual, you must specify an id and title for the ZSQL Method. In
addition you need to select a Database Connection to use with
this Z SQL Methods. Give this new method the id hire_employee and select
the gadfly_database_connection that you created in
the last section.
Next you can specify arguments to the Z SQL Method. Just like Python
Methods, ZSQL Methods can take arguments. Arguments
^^^^^ ^
are used to construct SQL statement. In this case your method needs four
arguments, the employee id number, the first name, the
last name and the employee's salary. Type "emp_id first last salary"
into the Arguments field. Don't put a comma between the two
arguments.
Ciao,
Jochen
--
--------------------------------------------------
Jochen Knuth WebMaster http://www.ipro.de
IPRO GmbH Phone ++49-7152-93330
Steinbeisstr. 6 Fax ++49-7152-933340
71229 Leonberg EMail: J.Knuth@ipro.de