--- a/web/views/xmlrss.py Wed Feb 09 18:06:19 2011 +0100
+++ b/web/views/xmlrss.py Wed Feb 09 18:06:24 2011 +0100
@@ -112,6 +112,10 @@
continue
self.w(u' <%s role="%s">\n' % (rtype, role))
for related in entity.related(rtype, role, entities=True):
+ # XXX put unique attributes as xml attribute, they are much
+ # probably used to search existing entities in client data feed,
+ # and putting it here may avoid an extra request to get those
+ # attributes values
self.w(u' <%s eid="%s" cwuri="%s"/>\n'
% (related.e_schema, related.eid,
xml_escape(related.cwuri)))
@@ -271,7 +275,6 @@
if entity.creator:
self._marker('dc:creator', entity.dc_creator())
-
def _marker(self, marker, value):
if value:
self.w(u' <%s>%s</%s>\n' % (marker, xml_escape(value), marker))