web/views/baseviews.py
changeset 324 9b51dac0bac2
parent 323 30c331fb17f0
child 349 bc1f1addd34b
--- 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):