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

# Source Code for Module Gnumed.wxpython.gui.gmBillingPlugin

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