Problem solved by removing the redirect and using the **kwargs
parameter into get_feed_data.

For some reason Bloglines and W3C did not mind the redirect trick I
was using, but Google Reader and others would not work with that.

Purpose of the redirect was to facilitate kwargs, but as Chris pointed
out to me, get_feed_data can indeed accept **kwargs.


On May 30, 2:50 pm, buffalob <[EMAIL PROTECTED]> wrote:
> Chris and others,
>
> I just discovered something about the problem, and it seems to relate
> to my use of TurboGears redirect.
>
> So maybe I should post this on the TurboGears group, but anyhow what I
> have discivered just now is that the Google Reader problem occurs with
> my URL that ends in '/rss' (name of my method from which I redirect to
> the FeedController URL ending in '/feed/rss2.0').
>
> My pasted code here shows what I'm 
> doing:http://paste.turbogears.org/paste/1334
>
> This use of redirect works fine from the W3C validator and from my
> Bloglines.com subscription (each of which can access my feed
> indirectly via my URL ending in '/rss' ).
>
> But Google Reader won't let me subscribe to that URL.  I just tried
> subscribing to the URL ending in '/feed/rss2.0' and yes Google Reader
> does let me subscribe to that.
>
> Here's my problem: in my project I will need to pass some keyword args
> as part of the feed URL (to specify customization options within a
> feed's data).
>
> But FeedController's get_feed_data seems to not allow *args and
> **kwargs, and so that's why I coded things using the redirect, so I'd
> be able to process data passed in URL via kwargs in my 'rss' method,
> store the data globally in my 'controllers.py' module, and then
> redirect to the URL ending in '/feeds/rss2.0' (which of course invokes
> get_feed_data, which then accesses the globally set customization data
> originally argument-passed in the URL ending in '/rss').
>
> I've no idea why my redirect works fine from Bloglines and W3C
> validator, but not from Google Reader.
>
> Any ideas please???  Would there be some way to either do the redirect
> differently, or perhaps to pass along info from keyword args in a URL
> into the get_feed_data method?
>
> Thanks for any help.
>
> On May 30, 2:16 pm, buffalob <[EMAIL PROTECTED]> wrote:
>
> > Here's my /controllers.py' code that generates my RSS 2.0 feed
> > (successfully according to Bloglins and W3C Validator, maybe not
> > successfully according to Google Reader and My Yahoo! feed readers:
>
> >http://paste.turbogears.org/paste/1334
>
> > On May 30, 2:00 pm, buffalob <[EMAIL PROTECTED]> wrote:
>
> > > thanks for reply, Chris
>
> > > Here's the RSS from my feed:http://paste.turbogears.org/paste/1333
>
> > > I don't have my Python code with me right now, but I'll post that in a
> > > few minutes.
>
> > > SinceBloglines.com will subscribe fine to my feed (and W3C validates
> > > it),
> > > but Google Reader and My Yahoo both refuse to subscribe and claim the
> > > feed isn't there,
> > > I am guessing the problem is pretty unusual, and might not even be a
> > > TG issue at all...
> > > but anything's possible and I am VERY confused about it!
>
> > > On May 30, 10:16 am, Christopher Arndt <[EMAIL PROTECTED]> wrote:
>
> > > > buffalob schrieb:
>
> > > > > And I am able to sucessfully subscribe to this feed from the
> > > > >Bloglines.com aggregator
> > > > > But that's the only aggregator I can get to work with the feed.
> > > > > Google Reader won't let me subscribe to it.
> > > > > Wonder if anyone else has experience, good or bad, trying to do this?
> > > > > Maybe the RSS 2.0 generated by TG FeedController is valid but needs
> > > > > some little tweak to work with those?
>
> > > > I have used the FeedGenerator successfully to subscribe my blog to
> > > > planetpython.org and planet.turbogears.org. If you want to have a look
> > > > at the code:
>
> > > >http://cblogtrac.serveblog.net/browser/trunk/cblog/controllers/feed.p......
>
> > > > (Please tell me if you have any trouble accessing the trac site, since I
> > > > have just set this up and it's running on a host with dynamic IP).
>
> > > > > Any ideas or insights will be much appreciated.
>
> > > > Please post an example of your generated feed 
> > > > tohttp://paste.turbogears.organdmaybeyourcontroller code and let us
> > > > know. Then we can examine the problem.
>
> > > > Chris


--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"TurboGears" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/turbogears?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to