[Zope] Python script error when tying to manage_addZSQLMethod

Dean Grubb dean@atrium-online.com.au
Tue, 5 Feb 2002 20:06:04 +1100 (Tasmania Daylight Time)


Hi can someone tell me why I get this error

Error Type: AttributeError
Error Value: manage_addZSQLMethod

from this python script

item_id = "test_DTMLDocument"
item_title = "Test DTML Document"
item_body = """<dtml-var header>...<dtml-var footer>"""

sqlName = "SQL_SELECT_ALL"
sqlTitle = "View All"
dbName = "dbConn"
argumentString = "wid given surname"
templateString = "SELECT * FROM clients"

context.manage_addDTMLDocument(id=item_id,title=item_title,file=item_body)
context.manage_addZSQLMethod(id=sqlName,title=sqlTitle,
                            connection_id=dbName,arguments=argumentString,
template=templateString)


what have I missed? I can get the manage_addDTMLDocument to work ok, but not
the manage_addZSQLMethod.

Dean