It looks to me like you have several problems: 1) manage_addDTMLDocument appears to be legacy code. 2) newname is a dtml var, not a python var (this might be okay though) 3) REQUEST is not a string 4) manage_addDocument doesn't take the document body anyway. 5) This is a really complicated way to try and track requests. Why not append them to a file or display them directy in the the page? You need something like: <dtml-call "REQUEST.set('newname', ZopeTime().strftime('%m-%d-%Y-%H-%M'))"> <dtml-call "manage_addDocument(_['newname'],'')"> <dtml-call "manage_edit(str(REQUEST),'')"> The last line doesn't work, of course, as I don't know how to get the added document. I'm a newbie...-----Original Message----- From: zope-admin@zope.org [mailto:zope-admin@zope.org]On Behalf Of D. Rick Anderson Sent: Wednesday, May 22, 2002 9:06 AM To: zope@zope.org Subject: Re: [Zope] REQUEST oops. The one I'm using doesn't have quotes around REQUEST: <dtml-call "REQUEST.set('newname', ZopeTime().strftime('%m-%d-%Y-%H-%M'))"> <dtml-call "manage_addDTMLDocument(newname, 'Error', REQUEST)"> Rick D. Rick Anderson wrote:I'm trying to insert the REQUEST object into a new DTML document to record errors on a page. It doesn't seem to like the way I'm doing it and I can't figure out how to get it to work. I tried: <dtml-call "REQUEST.set('newname', ZopeTime().strftime('%m-%d-%Y-%H-%M'))"> <dtml-call "manage_addDTMLDocument(newname, 'Error', 'REQUEST')"> and I get a Key Error: Error Type: KeyError Error Value: read I've tried creating the document first, and then using manage_edit to insert it, and the same thing happens. I really need to dump the REQUEST object somewhere when there's been an error so I can see what happened. TIA Rick _______________________________________________ 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 )_______________________________________________ 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 )