Hello!

I think there is a problem with the FeedController when using anything
but Kid as the default templating engine (we're using genshi). All the
three output methods(atom1_0, atom0_3 and rss2_0) look for an .html
file which they cannot find. Hardcoding the methods to look for a kid
template regardless of the default (as shown in the attached diff)
works prefectly.

Should I open a ticket for this? Is there a different way to do it
then editing feeds.py?

Thanks a lot!


Index: turbogears/feed/feed.py
===================================================================
--- turbogears/feed/feed.py     (revision 6599)
+++ turbogears/feed/feed.py     (working copy)
@@ -52,7 +52,7 @@
         feed["href"] = turbogears.url("/") + "atom1.0"
         self.depr_entrys(feed)
         return feed
-    atom1_0 = turbogears.expose(template="turbogears.feed.atom1_0",
+    atom1_0 = turbogears.expose
(template="kid:turbogears.feed.atom1_0",
                     format="xml", content_type="application/atom+xml")
(atom1_0)

     def atom0_3(self, **kwargs):
@@ -61,7 +61,7 @@
         feed["href"] = turbogears.url("/") + "atom0.3"
         self.depr_entrys(feed)
         return feed
-    atom0_3 = turbogears.expose(template="turbogears.feed.atom0_3",
+    atom0_3 = turbogears.expose
(template="kid:turbogears.feed.atom0_3",
                     format="xml", content_type="application/atom+xml")
(atom0_3)

     def rss2_0(self, **kwargs):
@@ -69,5 +69,5 @@
         self.format_dates(feed, 822)
         self.depr_entrys(feed)
         return feed
-    rss2_0 = turbogears.expose(template="turbogears.feed.rss2_0",
+    rss2_0 = turbogears.expose(template="kid:turbogears.feed.rss2_0",
                     format="xml", content_type="application/rss+xml")
(rss2_0)

--~--~---------~--~----~------------~-------~--~----~
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