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