コード例 #1
0
 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)
コード例 #2
0
ファイル: gmProviderInboxWidgets.py プロジェクト: sk/gnumed
	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)