cubicweb/web/views/xmlrss.py
changeset 11762 7518cb58ab4c
parent 11247 518eb10adcd5
child 11767 432f87a63057
equal deleted inserted replaced
11761:78c8a2bb04ff 11762:7518cb58ab4c
    75     __regid__ = 'xmlitem'
    75     __regid__ = 'xmlitem'
    76 
    76 
    77     def entity_call(self, entity):
    77     def entity_call(self, entity):
    78         """element as an item for an xml feed"""
    78         """element as an item for an xml feed"""
    79         entity.complete()
    79         entity.complete()
    80         source = entity.cw_metainformation()['source']['uri']
    80         source = entity.cw_source[0].name
    81         self.w(u'<%s eid="%s" cwuri="%s" cwsource="%s">\n'
    81         self.w(u'<%s eid="%s" cwuri="%s" cwsource="%s">\n'
    82                % (entity.cw_etype, entity.eid, xml_escape(entity.cwuri),
    82                % (entity.cw_etype, entity.eid, xml_escape(entity.cwuri),
    83                   xml_escape(source)))
    83                   xml_escape(source)))
    84         for rschema, attrschema in sorted(entity.e_schema.attribute_definitions()):
    84         for rschema, attrschema in sorted(entity.e_schema.attribute_definitions()):
    85             attr = rschema.type
    85             attr = rschema.type