----- Original Message -----
From: "Dieter Maurer" <[EMAIL PROTECTED]>
To: "Tim Hicks" <[EMAIL PROTECTED]>
Cc: <[EMAIL PROTECTED]>
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 &lt;string&gt;, line 0, in ?
NameError: theatre_class

It would seem that <string> is still raising its head.  Any ideas?

tim


_______________________________________________
Zope maillist  -  [EMAIL PROTECTED]
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 )

Reply via email to