def refresh(lctrl): reminders = gmProviderInbox.get_reminders(pk_patient=patient) items = [[ gmTools.bool2subst(r['is_overdue'], _('overdue for %s'), _('due in %s')) % gmDateTime.format_interval_medically(r['interval_due']), r['comment'], r['pk_inbox_message'] ] for r in reminders] lctrl.set_string_items(items) lctrl.set_data(reminders)
def refresh(lctrl): reminders = gmProviderInbox.get_reminders(pk_patient = patient) items = [ [ gmTools.bool2subst ( r['is_overdue'], _('overdue for %s'), _('due in %s') ) % gmDateTime.format_interval_medically(r['interval_due']), r['comment'], r['pk_inbox_message'] ] for r in reminders ] lctrl.set_string_items(items) lctrl.set_data(reminders)