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

Source Code for Module Gnumed.wxpython.gui.gmWaitingListPlugin

 1  #===================================================== 
 2  # GNUmed waiting list 
 3  #===================================================== 
 4  __author__ = "Karsten Hilbert <Karsten.Hilbert@gmx.net>" 
 5  __license__ = "GPL" 
 6   
 7  from Gnumed.wxpython import gmPlugin, gmWaitingListWidgets 
 8  from Gnumed.wxpython import gmAccessPermissionWidgets 
9 10 #====================================================================== 11 -class gmWaitingListPlugin(gmPlugin.cNotebookPlugin):
12 """Plugin to encapsulate the waiting list.""" 13 14 tab_name = _('Waiting list') 15 required_minimum_role = 'staff' 16 17 @gmAccessPermissionWidgets.verify_minimum_required_role ( 18 required_minimum_role, 19 activity = _('loading plugin <%s>') % tab_name, 20 return_value_on_failure = False, 21 fail_silently = False 22 )
23 - def register(self):
25 #------------------------------------------------- 26 #--------------------------------------------------------
27 - def __init__(self):
29 #--------------------------------------------------------
30 - def name(self):
32 #--------------------------------------------------------
33 - def GetWidget(self, parent):
34 self._widget = gmWaitingListWidgets.cWaitingListPnl(parent, -1) 35 return self._widget
36 #--------------------------------------------------------
37 - def MenuInfo(self):
38 return ('office', _('&Waiting list'))
39 #--------------------------------------------------------
40 - def can_receive_focus(self):
41 return True
42 #====================================================================== 43