This seems to almost work. :-)

On Sun, 14 Jan 2001, Jim Washington wrote:

> !<dtml-var standard_html_header>
> !<dtml-if "REQUEST.form.has_key('editCD')">
> !  <dtml-call "manage_changeCDProperties(REQUEST)">
> !  <p><font color="red">Your changes have been saved</font></p>
> !</dtml-if>
> !<form action="replace_this_with_id_of_this_method">
>  <table border="0">
>  <tr><th>Title</th>
>   <td><input type="text" name="title" value="<dtml-var title>"></td>
>  </tr>
>  <tr><th>Artist</th>
>    <td><input type="text" name="artist" value="<dtml-var artist>"></td>
>  </tr>
>  <tr><td>
> ! <input type="submit" name="editCD" value=" Submit Edits ">
>  </td></tr>
>  </table>
>  </form>
> !<dtml-var standard_html_footer>

That's quite clever. I wouldn't have thought of doing it that way.

After translating the CD example to my own ZClass, I get the following error
after hitting "Submit Edits" on the edit form:

<h2>Zope Error</h2>
<p>Zope has encountered an error while publishing this resource.
<p><strong>Resource not found</strong></p>
Sorry, the requested Zope resource does not exist.<p>Check the URL and try

and the traceback:

Traceback (innermost last):
  File /var/lib/zope/2.3.0a2/lib/python/ZPublisher/, line 222, in
  File /var/lib/zope/2.3.0a2/lib/python/ZPublisher/, line 187, in
  File /var/lib/zope/2.3.0a2/lib/python/Zope/, line 221, in
    (Object: Traversable)
  File /var/lib/zope/2.3.0a2/lib/python/ZPublisher/, line 162, in
  File /var/lib/zope/2.3.0a2/lib/python/ZPublisher/, line 369,
in traverse
  File /var/lib/zope/2.3.0a2/lib/python/ZPublisher/, line
528, in notFoundError
NotFound: (see above)

It looks like REQUEST isn't getting passed correctly. I've got REQUEST
listed as a parameter for my PythonScript. I don't need to mess with
bindings do I?


Tim Wilson      | Visit Sibley online:         | Check out:
Henry Sibley HS | |
W. St. Paul, MN |                              |
[EMAIL PROTECTED] |   <dtml-var pithy_quote>     |

Zope maillist  -  [EMAIL PROTECTED]
**   No cross posts or HTML encoding!  **
(Related lists - )

Reply via email to