Package Gnumed :: Package wxpython :: Package gui :: Module gmProviderInboxPlugin
[frames] | no frames]

Source Code for Module Gnumed.wxpython.gui.gmProviderInboxPlugin

 1  #===================================================== 
 2  # GNUmed provider inbox plugin 
 3  # later to evolve into a more complete "provider-centric hub" 
 4  #===================================================== 
 5  __author__ = "Karsten Hilbert <Karsten.Hilbert@gmx.net>" 
 6  __license__ = "GPL" 
 7   
 8  from Gnumed.wxpython import gmPlugin, gmProviderInboxWidgets 
 9  from Gnumed.wxpython import gmAccessPermissionWidgets 
10 11 #====================================================================== 12 -class gmProviderInboxPlugin(gmPlugin.cNotebookPlugin):
13 """Plugin to encapsulate the provider inbox window.""" 14 15 tab_name = _('Inbox') 16 required_minimum_role = 'staff' 17 18 @gmAccessPermissionWidgets.verify_minimum_required_role ( 19 required_minimum_role, 20 activity = _('loading plugin <%s>') % tab_name, 21 return_value_on_failure = False, 22 fail_silently = False 23 )
24 - def register(self):
26 #------------------------------------------------- 27 #--------------------------------------------------------
28 - def __init__(self):
30 #--------------------------------------------------------
31 - def name(self):
33 #--------------------------------------------------------
34 - def GetWidget(self, parent):
35 self._widget = gmProviderInboxWidgets.cProviderInboxPnl(parent, -1) 36 return self._widget
37 #--------------------------------------------------------
38 - def MenuInfo(self):
39 return ('office', _('Provider &inbox'))
40 #--------------------------------------------------------
41 - def can_receive_focus(self):
42 return True
43 #====================================================================== 44