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

Source Code for Module Gnumed.wxpython.gui.gmBillingPlugin

 1  # -*- coding: utf-8 -*- 
 2  #====================================================================== 
 3  # GNUmed billing plugin 
 4  # 
 5  # @copyright: authors 
 6  #====================================================================== 
 7  __author__ = "Nico Latzer <nl@mnet-online.de>, Karsten Hilbert <Karsten.Hilbert@gmx.net>" 
 8  __license__ = 'GPL v2 or later (details at http://www.gnu.org)' 
 9   
10  import logging 
11   
12   
13  import wx 
14   
15   
16  from Gnumed.wxpython import gmPlugin 
17  from Gnumed.wxpython import gmBillingWidgets 
18  from Gnumed.wxpython import gmAccessPermissionWidgets 
19   
20   
21  _log = logging.getLogger('gm.billing') 
22 23 #====================================================================== 24 -class gmBillingPlugin(gmPlugin.cNotebookPlugin):
25 26 tab_name = _('Billing') 27 required_minimum_role = 'full clinical access' 28 29 @gmAccessPermissionWidgets.verify_minimum_required_role ( 30 required_minimum_role, 31 activity = _('loading plugin <%s>') % tab_name, 32 return_value_on_failure = False, 33 fail_silently = False 34 )
35 - def register(self):
37
38 - def name(self):
40
41 - def GetWidget(self, parent):
42 self._widget = gmBillingWidgets.cBillingPluginPnl(parent, -1) 43 return self._widget
44
45 - def MenuInfo(self):
46 pass
47
48 - def can_receive_focus(self):
49 if not self._verify_patient_avail(): 50 return None 51 return 1
52 53 #====================================================================== 54 if __name__ == '__main__': 55 pass 56