equal
deleted
inserted
replaced
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 |