Phil, When I use <dtml-var channel>, I get the following output: {'title': 'Zope.org', 'language': 'en-us', 'description': 'News from Zope.org', 'link': 'http://www.zope.org/', 'encoding': 'UTF-8'} This suggests to me that channel does have a 'title' whose value should be 'Zope.org'. When I use <dtml-var channel['title']>, I get: Zope Error Zope has encountered an error while publishing this resource. Error Type: KeyError Error Value: channel['title'] Troubleshooting Suggestions a.. This resource may be trying to reference a nonexistent object or variable channel['title']. b.. The URL may be incorrect. c.. The parameters passed to this resource may be incorrect. d.. A resource that this resource relies on may be encountering an error. I have tried all sorts of alternative syntax, but have not been able to get any to work yet. I know that the answer is out there somewhere... Hoping someone can show me what to do or point me in the right direction.. Thanks, Ot ----- Original Message ----- From: "Phil Harris" <phil@harris-family.info> To: "Ot Ratsaphong" <ot.ratsaphong@tpg.com.au>; <zope@zope.org> Sent: Tuesday, February 19, 2002 12:27 AM Subject: Re: [Zope] Zope Syndication
The syntax you show is correct, the problem you are having is that the channel object doesn't have a title attribute. Removing that line will indeed allow the script to continue running, but the real fix would be to discover why the channel doesn't have a title ;)
On Wed, 20 Feb 2002 00:10:12 +1100 Ot Ratsaphong <ot.ratsaphong@tpg.com.au> wrote:
Further to my query on getting the zope news.rss to display, I got it to display on my browser by removing the line with <dtml-var "channel['title']">. I think this line is supposed to show the channel title, but some reason zope is not accepting this syntax.
I anyone knows how to get past this syntax problem, please let us know.
Thanks, Ot Ratsaphong