[Zope-DB] Retrieving Data from Z SQL in Python

Christer Fernstrom myzope at fernstromOnThe.net
Wed May 18 18:03:45 EDT 2005


I have a very simple Z SQL method that works fine when I test run it. But
when I call it from a Python script (see below) and attempt to print the
result, I get the following error:

Error Type: TypeError
Error Value: cannot concatenate 'str' and 'ImplicitAcquirerWrapper' objects

------ Python script -----
# Import a standard function, and get the HTML request and response objects.
##from Products.PythonScripts.standard import html_quote
request = container.REQUEST

data = context.getChunk1()
for data_row in data:
  print "data-row="+data_row
return printed

-- christer 

More information about the Zope-DB mailing list