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

Source Code for Module Gnumed.wxpython.gui.gmScanIdxMedDocsPlugin

 1  # -*- coding: utf-8 -*- 
 2  #===================================================== 
 3  # GNUmed scan and index plugin 
 4  #===================================================== 
 5  __version__ = "$Revision: 1.8 $" 
 6  __author__ = "Sebastian Hilbert <Sebastian.Hilbert@gmx.net>\ 
 7                Karsten Hilbert <Karsten.Hilbert@gmx.net>" 
 8  __license__ = "GPL" 
 9   
10  from Gnumed.wxpython import gmPlugin, gmDocumentWidgets 
11  from Gnumed.wxpython import gmAccessPermissionWidgets 
12 13 #==================================== 14 -class gmScanIdxMedDocsPlugin(gmPlugin.cNotebookPlugin):
15 """Plugin to encapsulate patient scan index documents window.""" 16 17 tab_name = _('Attach documents') 18 required_minimum_role = 'non-clinical access' 19 20 @gmAccessPermissionWidgets.verify_minimum_required_role ( 21 required_minimum_role, 22 activity = _('loading plugin <%s>') % tab_name, 23 return_value_on_failure = False, 24 fail_silently = False 25 )
26 - def register(self):
28 #------------------------------------------------- 29
30 - def name(self):
32
33 - def GetWidget(self, parent):
34 self._widget = gmDocumentWidgets.cScanIdxDocsPnl(parent, -1) 35 return self._widget
36
37 - def MenuInfo(self):
38 return ('emr', _('&Attach documents'))
39
40 - def can_receive_focus(self):
41 # need patient 42 if not self._verify_patient_avail(): 43 return None 44 return 1
45 #====================================================================== 46