@property
    def rows(self):
        if self.get_user() is not None:
            def _format_row(row_field_dict):
                yield html.mark_safe("<a class='ajax_dialog' href='%s'>View</a>" % (
                reverse('render_form_data', args=[self.domain, row_field_dict['_id']])))
                yield row_field_dict['script_pact_id']
                yield self.format_date(row_field_dict["received_on"].replace('_', ' ').title())
                yield self.format_date(row_field_dict['script_encounter_date'])
                yield row_field_dict["form.#type"].replace('_', ' ').title().strip()

            res = self.es_results
            if res.has_key('error'):
                pass
            else:
                for result in res['hits']['hits']:
                    yield list(_format_row(result['fields']))
Deprecated version of richtext_filters above.
dataset/ETHPy150Open dimagi/commcare-hq/custom/_legacy/pact/reports/chw.py/PactCHWProfileReport.rows--crossover with--dataset/ETHPy150Open stephenmcd/mezzanine/mezzanine/core/templatetags/mezzanine_tags.py/richtext_filter