[Zope] NameError:

Rop Slijkerman ropjes@groovy.xs4all.nl
Fri, 19 Mar 1999 18:52:21 +0000 (GMT)


In a database with personal bookmarks wich I created as a test I get the
following error when trying to update a bookmark. This is new. It worked
before I had to reinstall Linux from scratch, wich had ofcourse nothing
to do with zope.

<!--
 Error type:  
 Error value: desc
 -->

<!--
Traceback (innermost last):
  File /usr/local/lib/zope/lib/python/ZPublisher/Publish.py, line 878, in
publish_module
  File /usr/local/lib/zope/lib/python/ZPublisher/Publish.py, line 590, in
publish
    (Info: Groovy/Bookmarks/Update/Update_bookmarks)
  File /usr/local/lib/zope/lib/python/OFS/DTMLMethod.py, line 155, in
__call__
    (Object: Update_bookmarks)
  File /usr/local/lib/zope/lib/python/OFS/DTMLMethod.py, line 151, in
__call__
    (Object: Update_bookmarks)
  File /usr/local/lib/zope/lib/python/DocumentTemplate/DT_String.py, line
513, in __call__
    (Object: Update_bookmarks)
  File /usr/local/lib/zope/lib/python/DocumentTemplate/DT_Util.py, line
266, in eval
    (Object: SQL_update_bookmarks(REQUEST))
  File <string>, line 0, in ?
  File /usr/local/lib/zope/lib/python/Shared/DC/ZRDB/DA.py, line 390, in
__call__
    (Object: CopySource)
  File /usr/local/lib/zope/lib/python/Products/ZmySQLDA/db.py, line 178,
in query
NameError: (see above)
-->

This error is the result of calling this method:

<!--#var standard_html_header-->
<H2><!--#var title--></H2>
<!--#call "SQL_update_bookmarks(REQUEST)"-->
Your data was Updated in the Database!
<!--#var standard_html_footer-->


The SQL statement (SQL_update_bookmarks):

UPDATE bookmarks
SET
   naam=<!--#sqlvar bookmarks.naam type=string-->,
   bookmark_url=<!--#sqlvar bookmarks.bookmark_url type=string-->
WHERE
   nummer=<!--#sqlvar bookmarks.nummer type=int -->



-
Rop