fix author tag
authorSylvain Thenault <sylvain.thenault@logilab.fr>
Mon, 05 Jan 2009 15:44:33 +0100
changeset 324 9b51dac0bac2
parent 323 30c331fb17f0
child 327 239cc0c3a5e4
fix author tag
web/views/baseviews.py
--- a/web/views/baseviews.py	Mon Jan 05 14:38:45 2009 +0100
+++ b/web/views/baseviews.py	Mon Jan 05 15:44:33 2009 +0100
@@ -656,7 +656,13 @@
         self._marker('link', entity.absolute_url())
         self._marker('description', entity.dc_description())
         self._marker('dc:date', entity.dc_date(self.date_format))
-        self._marker('author', entity.dc_authors())
+        if entity.creator:
+            self.w('<author>')
+            self._marker('name', entity.creator.name())
+            email = entity.creator.get_email()
+            if email:
+                self._marker('email', email)
+            self.w('</author>')
         self.w(u'</item>\n')
         
     def _marker(self, marker, value):