buffalob schrieb:
> My problem seems to be that get_feed_data does not allow kwargs to be
> passed in. (true?)

False. Here's the fist two lines from, for example, the 'atom1_0' method
in the 'FeedController' class:

    def atom1_0(self, **kwargs):
        feed = self.get_feed_data(**kwargs)

(see http://svn.turbogears.org/branches/1.0/turbogears/feed/feed.py)

Just define your 'get_feed_data' method like this in your
'FeedController' subclass:

    def get_feed_data(self, **kw):
        """Fetch feed data from model and assemble into dictionary."""
        ...

Supposing your 'FeedController' subclass is mounted like this:

    class Root(controllers.RootController):
        feed = MyFeedController()

You can then request your feed like this:

    http://mysite.org/feed/atom1_0?format=full&items=10

and you'll have kw['format'] = 'full' and kw['items'] = '10' defined in
your 'get_feed_data' method.

BTW, have you read http://docs.turbogears.org/1.0/FeedObject ?

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