[Zope] NameError

Dieter Maurer dieter@handshake.de
Fri, 7 Jun 2002 19:14:25 +0200


eric.n.dunn@bankofamerica.com writes:
 > I tried all combo's of single-ticks, double-quotes  etc...  (code is
 > straight out of WACK book)
 > Using Zope 2.5 w/ Deban and Postgres w/ Z PoPy Database Connection
 > 
 > Any ideas?
 > 
 > Sql Method
 > 
 > INSERT INTO Addressbook
 > (Name,FirstName,Address,City,ZIP,Phone)
 > VALUES
 > (?<dtml-sqlvar Name type=string>?,
 > ?<dtml-sqlvar FirstName type=string>?,
 > ?<dtml-sqlvar Address type=string>?,
 > ?<dtml-sqlvar City type=string>?,
 > <dtml-sqlvar ZIP type=int>,
 > ?<dtml-sqlvar Phone type=string>?)
What are the '?'?

Otherwise, it looks like a bug in "PoPy".
 > ...
 >   File /local/zope/lib/python/Products/ZPoPyDA/PoPy_DA.py, line 103, in
 > sql_quote__
 > ...
 > NameError: global name 'string' is not defined
Check line 103 in "PoPy_DA.py" whether it references "string".
If it does, add an "import string" in the module.


Dieter