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
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
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
Ot, I had forgotten that I too had the same problem when using RDFSummary. Although 'title' fails, I don't recall having any problem calling any other objects. You can always use your own title for the object. This is what I ended up doing. That's the best I can do, unless Phil or someone else can suggest something better for this. Ot Ratsaphong wrote:
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
_______________________________________________ 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 )
participants (3)
-
Ot Ratsaphong -
Phil Harris -
Tim Hawes