Mmm... I don´t really know, but may be "context" changes when you adds the DTMLDocument. Maybe "conext" is the Document after you adds the document. Try with container.manage_addZSQLMethod(...). Regards. Antonio Carrasco ----- Original Message ----- From: "Dean Grubb" <dean@atrium-online.com.au> To: <zope@zope.org> Sent: Tuesday, February 05, 2002 10:06 AM Subject: [Zope] Python script error when tying to manage_addZSQLMethod 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=em_id,title=em_title,file=em_body) context.manage_addZSQLMethod(id=lName,title=lTitle, connection_idÛName,arguments=gumentString, template=mplateString) what have I missed? I can get the manage_addDTMLDocument to work ok, but not the manage_addZSQLMethod. Dean _______________________________________________ Zope maillist - Zope@zope.org http://lists.zope.org/mailman/listinfo/zope ** No cross posts or HTML encoding! ** (Related lists - http://lists.zope.org/mailman/listinfo/zope-announce http://lists.zope.org/mailman/listinfo/zope-dev )