Re: [Zope] Dictionary Key Error from Parsed RSS

2007-06-15 Thread Dieter Maurer
Tom Von Lahndorff wrote at 2007-6-15 11:45 -0400: >http://www.modscape.com/blog/ >rss.xml')"> > > > > > >gives: > >Site Error > >An error was encountered while publishing this resource. > >Error Type: Unauthorized >Error Value: You are not allowed to access 'feed' in this context > ... >If the err

Re: [Zope] Dictionary Key Error from Parsed RSS

2007-06-15 Thread Tom Von Lahndorff
Here's a snippet of the rendered RSS feed: {'feed': {'subtitle': u'', 'links': [{'href': u'http:// www.modscape.com/blog', 'type': 'text/html', 'rel': 'alternate'}], 'title': u'modscape.com Home', 'subtitle_detail': {'base': 'http:// www.modscape.com/blog/rss.xml', 'type': 'text/html', 'value

Re: [Zope] Dictionary Key Error from Parsed RSS

2007-06-15 Thread Andreas Jung
No idea what this method should tell use?! Your code uses "news.feed.href"...nothing's like that can be found here in the code. We can not guess what this snippet is doing and where and why. -aj --On 15. Juni 2007 12:02:48 -0400 Tom Von Lahndorff <[EMAIL PROTECTED]> wrote: shouldnt this pre

Re: [Zope] Dictionary Key Error from Parsed RSS

2007-06-15 Thread Tom Von Lahndorff
shouldnt this prevent that? def dictify(p): """ Since the FeedParser returns a dictionary-like class instance, rather than a real dictionary, We must iterate through all nested instances and convert them to dicts to avoid security problems within Zope. I have no idea *why*

Re: [Zope] Dictionary Key Error from Parsed RSS

2007-06-15 Thread Andreas Jung
--On 15. Juni 2007 11:45:49 -0400 Tom Von Lahndorff <[EMAIL PROTECTED]> wrote: http://www.modscape.com/blog/rss.xml')"> gives: Site Error An error was encountered while publishing this resource. Error Type: Unauthorized Error Value: You are not allowed to access 'feed' in this contex

Re: [Zope] Dictionary Key Error from Parsed RSS

2007-06-15 Thread Tom Von Lahndorff
http://www.modscape.com/blog/ rss.xml')"> gives: Site Error An error was encountered while publishing this resource. Error Type: Unauthorized Error Value: You are not allowed to access 'feed' in this context Troubleshooting Suggestions * The URL may be incorrect. * The parameter

Re: [Zope] Dictionary Key Error from Parsed RSS

2007-06-15 Thread Andreas Jung
--On 15. Juni 2007 10:18:20 -0400 Tom Von Lahndorff <[EMAIL PROTECTED]> wrote: I'm prompted to login, -> use VerboseSecurity which I'm unable to do with my admin login. After hitting cancel I get a Key Error that says You are not able to access 'href' (or whatever) in this context. Yo

Re: [Zope] Dictionary Key Error from Parsed RSS

2007-06-15 Thread Jonathan
- Original Message - From: "Tom Von Lahndorff" <[EMAIL PROTECTED]> To: Sent: Friday, June 15, 2007 10:18 AM Subject: [Zope] Dictionary Key Error from Parsed RSS Hi everyone, I've used Universal Feed Parser to parse an RSS feed. Then used these instructions below to get the parsed d