Home | Trees | Indices | Help |
|
---|
|
1 # -*- coding: utf-8 -*- 2 #===================================================== 3 # GNUmed provider inbox plugin 4 # later to evolve into a more complete "provider-centric hub" 5 #===================================================== 6 __author__ = "Karsten Hilbert <Karsten.Hilbert@gmx.net>" 7 __license__ = "GPL" 8 9 from Gnumed.wxpython import gmPlugin, gmProviderInboxWidgets 10 from Gnumed.wxpython import gmAccessPermissionWidgets11 12 #====================================================================== 13 -class gmProviderInboxPlugin(gmPlugin.cNotebookPlugin):14 """Plugin to encapsulate the provider inbox window.""" 15 16 tab_name = _('Inbox') 17 required_minimum_role = 'non-clinical access' 18 19 @gmAccessPermissionWidgets.verify_minimum_required_role ( 20 required_minimum_role, 21 activity = _('loading plugin <%s>') % tab_name, 22 return_value_on_failure = False, 23 fail_silently = False 24 ) 27 #------------------------------------------------- 28 #-------------------------------------------------------- 31 #-------------------------------------------------------- 34 #-------------------------------------------------------- 38 #-------------------------------------------------------- 41 #-------------------------------------------------------- 44 #--------------------------------------------------------56 57 #====================================================================== 5846 if not gmPlugin.cNotebookPlugin._on_raise_by_signal(self, **kwds): 47 return False 48 49 try: 50 if kwds['filter_by_active_patient'] is True: 51 self._widget.filter_by_active_patient() 52 except KeyError: 53 pass 54 55 return True
Home | Trees | Indices | Help |
|
---|
Generated by Epydoc 3.0.1 on Sun Nov 10 02:55:34 2019 | http://epydoc.sourceforge.net |