try to fix rss feed, but author still does'nt show up...
authorsylvain.thenault@logilab.fr
Wed, 25 Mar 2009 11:06:05 +0100
changeset 1139 bf3384eb87a4
parent 1137 9ce0ac82f94f
child 1140 79bcbb1c39ce
try to fix rss feed, but author still does'nt show up...
web/views/baseviews.py
--- a/web/views/baseviews.py	Tue Mar 24 11:58:35 2009 +0100
+++ b/web/views/baseviews.py	Wed Mar 25 11:06:05 2009 +0100
@@ -691,15 +691,9 @@
         params = req.form.copy()
         params.pop('vid', None)
         self.w(u'    <link>%s</link>\n' % html_escape(self.build_url(**params)))
-        self.w(u'    <items>\n')
-        self.w(u'      <rdf:Seq>\n')
-        for entity in self.rset.entities():
-            self.w(u'      <rdf:li resource="%s" />\n' % html_escape(entity.absolute_url()))
-        self.w(u'      </rdf:Seq>\n')
-        self.w(u'    </items>\n')
-        self.w(u'  </channel>\n')
         for i in xrange(self.rset.rowcount):
             self.cell_call(i, 0)
+        self.w(u'  </channel>\n')
         self.w(u'</rss>')       
 
 class RssItemView(EntityView):
@@ -721,12 +715,12 @@
            
     def render_entity_creator(self, entity):
         if entity.creator:
-            self.w(u'<author>')
-            self._marker('name', entity.creator.name())
+            self._marker('dc:creator', entity.creator.name())
             email = entity.creator.get_email()
             if email:
-                self._marker('email', email)
-            self.w(u'</author>')       
+                self.w(u'<author>')
+                self.w(email)
+                self.w(u'</author>')       
         
     def _marker(self, marker, value):
         if value: