| Home | Trees | Indices | Help |
|
|---|
|
|
1 """A documents tree plugin."""
2
3 __version__ = "$Revision: 1.78 $"
4 __author__ = "Karsten Hilbert <Karsten.Hilbert@gmx.net>"
5 #================================================================
6 import os.path, sys, logging
7
8
9 import wx
10
11
12 from Gnumed.wxpython import gmDocumentWidgets, gmPlugin
13 from Gnumed.wxpython import gmAccessPermissionWidgets
14
15
16 _log = logging.getLogger('gm.ui')
17 _log.info(__version__)
18 #================================================================
19 -class gmShowMedDocs(gmPlugin.cNotebookPlugin):
20 """Plugin to encapsulate document tree."""
21
22 tab_name = _("Documents")
23 required_minimum_role = 'full clinical access'
24
25 @gmAccessPermissionWidgets.verify_minimum_required_role (
26 required_minimum_role,
27 activity = _('loading plugin <%s>') % tab_name,
28 return_value_on_failure = False,
29 fail_silently = False
30 )
33 #-------------------------------------------------
34
37 #--------------------------------------------------------
41 #--------------------------------------------------------
43 return ('emr', _('&Documents'))
44 #--------------------------------------------------------
50 #--------------------------------------------------------
52 if not gmPlugin.cNotebookPlugin._on_raise_by_signal(self, **kwds):
53 return False
54
55 try:
56 if kwds['sort_mode'] == 'review':
57 self._widget._on_sort_by_review_selected(None)
58 except KeyError:
59 pass
60
61 return True
62 #================================================================
63 # MAIN
64 #----------------------------------------------------------------
65 if __name__ == '__main__':
66 pass
67 #================================================================
68
| Home | Trees | Indices | Help |
|
|---|
| Generated by Epydoc 3.0.1 on Sat Oct 5 03:57:11 2013 | http://epydoc.sourceforge.net |