I am trying to catalog mysql database items in a plone site using python.
The function that catalogs the SQL query results takes 2 arguments. First is the item returned by the query (for example Select * from books would return many book objects) and second argument is the string url on the site where the details for that mysql object is displayed.
Here is the line of code that throws the error. Here container object just refers to the containing folder on the server and book is the object returned by the SQL query
books = container.getBookTitleToCatalog()
for book in books:
This throws type error "str object is not callable". Would appreciate if anyone can help me figure out the cause of this error