

def format_cuf_xml(self, event):
    tvals = collections.defaultdict((lambda : ''))
    tvals.update(event)
    tvals.update(self.extra_info)
    (start_time, end_time) = self._get_times(event)
    tvals['start_time'] = self._format_time(start_time)
    tvals['end_time'] = self._format_time(end_time)
    tvals['status'] = self._get_status(event)
    tvals['options'] = self._get_options(event)
    c = (cuf_template % tvals)
    return (c, 'application/xml')

dataset/ETHPy150Open openstack/stacktach-winchester/winchester/pipeline_handler.py AtomPubHandler.format_cuf_xml/original