[Zope] Newbie DTML question
Timothy Grant
tjg@avalongroup.net
Mon, 01 Feb 1999 15:19:52 -0800
At 05:02 PM 2/1/99 -0500, you wrote:
>At 11:14 AM 2/1/99 -0800, Timothy Grant wrote:
>>At 09:36 AM 2/1/99 +0200, you wrote:
>The above construct won't work, since "with" only applies to its lexical
>nesting scope. Use <!--#call "REQUEST.set('tempvar',tempval)"--> instead.
Thanks Phillip! This was the missing piece. It works beautifully now.
>>>_[Category] should give you indirect access to the variable whose name
>>>is the value of Category. Note the lack of quotes around Category (as
>>>opposed to your code above).
>>
>>>Tell me if this doesn't work for you (and I'll look more into it).
>>
>>This unfortunately does not work at all, when I use it I get the Zope Error
>>message saying Zope is unavailable.
>
>View the HTML source of the error message to get more details on what is
>happening.
Wow, I wish I had known you could do this a while ago! It would be nice if
there were a developer mode where this information comes up by default in
the message.
Thanks for your kind assistance!
Here's the traceback:
<!--
Error type:
Error value: _[Category]
-->
</BODY></HTML>
<!--
Traceback (innermost last):
File
/home/brian/temp/build/tmp_build/Zope-1.9.0-linux2-x86/lib/python/ZPublisher
/Publish.py, line 879, in publish_module
File
/home/brian/temp/build/tmp_build/Zope-1.9.0-linux2-x86/lib/python/ZPublisher
/Publish.py, line 595, in publish
(Info: /Pricing/index_html)
File
/home/brian/temp/build/tmp_build/Zope-1.9.0-linux2-x86/lib/python/OFS/Docume
nt.py, line 181, in __call__
(Object: index_html)
File
/home/brian/temp/build/tmp_build/Zope-1.9.0-linux2-x86/lib/python/OFS/Docume
nt.py, line 177, in __call__
(Object: index_html)
File
/home/brian/temp/build/tmp_build/Zope-1.9.0-linux2-x86/lib/python/DocumentTe
mplate/DT_String.py, line 514, in __call__
(Object: index_html)
File
/home/brian/temp/build/tmp_build/Zope-1.9.0-linux2-x86/lib/python/DocumentTe
mplate/DT_In.py, line 687, in renderwob
(Object: PriceCategories)
KeyError: (see above)
--
Stand Fast,
tjg.
===================================
Timothy J. Grant tjg@avalongroup.net
Avalon Technology Group www.avalongroup.net
(503) 246-3630 voice
(503) 246-3124 fax
This message may be digitally signed with PGP. A PGP signature
guarantees that this message really did come from me. For more
information regarding digital signatures and encryption, please
contact me.