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):
    25                  gmPlugin.cNotebookPlugin.register(self)
    26          #-------------------------------------------------
    27          #--------------------------------------------------------
    28 -        def __init__(self):
    29                  gmPlugin.cNotebookPlugin.__init__(self)
    30          #--------------------------------------------------------
    31 -        def name(self):
    32                  return gmProviderInboxPlugin.tab_name
    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