[Zope] Passing parameters to an SQL_method
Fabrizio
facelle@libero.it
Fri, 3 Aug 2001 19:15:00 +0200
Hi,
Newbie. Zope 2.3.2 on Win98.
I want to pass some parameters from a web form to a Zsql method to update a
record.
I try the following dtml method :
<br><table>
<tr><th>Code:</th>
<td><input code="code" width=30 value="<dtml-var code>">
<tr><th>Name :</th>
<td><input name="name" width=30 value="<dtml-var name>">
<tr><th>Cognome :</th>
<td><input name="surname" width=30 value="<dtml-var surname>">
</td></tr>
</table>
<br>
<form action="sql_update(name, code)" method="POST">
<input type="submit" value=" UPDATE "><br>
But I get the following error :
Site Error
An error was encountered while publishing this resource.
Debugging Notice
Zope has encountered a problem publishing your object.
Cannot locate object at:
http://localhost:8080/zoo/Database/sql_update%28name,%20code%29
----------------------------------------------------------------------------
----
Troubleshooting Suggestions
The URL may be incorrect.
The parameters passed to this resource may be incorrect.
A resource that this resource relies on may be encountering an error.
For more detailed information about the error, please refer to the HTML
source for this page.
If the error persists please contact the site maintainer. Thank you for your
patience.
Traceback (innermost last):
File C:\Programmi\WebSite\lib\python\ZPublisher\Publish.py, line 223, in
publish_module
File C:\Programmi\WebSite\lib\python\ZPublisher\Publish.py, line 187, in
publish
File C:\Programmi\WebSite\lib\python\Zope\__init__.py, line 221, in
zpublisher_exception_hook
(Object: Traversable)
File C:\Programmi\WebSite\lib\python\ZPublisher\Publish.py, line 162, in
publish
File C:\Programmi\WebSite\lib\python\ZPublisher\BaseRequest.py, line 369,
in traverse
File C:\Programmi\WebSite\lib\python\ZPublisher\HTTPResponse.py, line 557,
in debugError
NotFound: (see above)
Any help would be appreciated.
Thanks in advance
Fabrizio