----- Original Message ----- From: "Dieter Maurer" <dieter@handshake.de> To: "Tim Hicks" <tim@sitefusion.co.uk> Cc: <zope@zope.org> Sent: Tuesday, September 05, 2000 9:44 PM Subject: ZClass Bug (was: Re: [Zope] How to access id and title of document calling standard_html_header) <snip>
The analysis provides a workaround for you. In your ZClass constructor, add <dtml-call "REQUEST.set('__name__',REQUEST['id'])"> before the <dtml-with
"<yourClass>.createInObjectManager(REQUEST['id'],REQUEST)">
<snip> Dieter, I tried using the code that you suggested above, but I get the following error from Zope 2.2.1 <snipped traceback> File C:\PROGRA~1\Zope221\lib\python\DocumentTemplate\DT_With.py, line 133, in render (Object: theatre_class.createInObjectManager(REQUEST['id'], REQUEST)) File C:\PROGRA~1\Zope221\lib\python\DocumentTemplate\DT_Util.py, line 337, in eval (Object: theatre_class.createInObjectManager(REQUEST['id'], REQUEST)) (Info: REQUEST) File <string>, line 0, in ? NameError: theatre_class It would seem that <string> is still raising its head. Any ideas? tim